diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0049-policy-modules-system-logging-add-the-syslogd_t-to-t.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0049-policy-modules-system-logging-add-the-syslogd_t-to-t.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0049-policy-modules-system-logging-add-the-syslogd_t-to-t.patch b/recipes-security/refpolicy/refpolicy/0049-policy-modules-system-logging-add-the-syslogd_t-to-t.patch new file mode 100644 index 0000000..6ea1efd --- /dev/null +++ b/recipes-security/refpolicy/refpolicy/0049-policy-modules-system-logging-add-the-syslogd_t-to-t.patch @@ -0,0 +1,36 @@ +From de58aa981e1c05ce06938704089c7c87c765add6 Mon Sep 17 00:00:00 2001 +From: Xin Ouyang <Xin.Ouyang@windriver.com> +Date: Thu, 22 Aug 2013 13:37:23 +0800 +Subject: [PATCH] policy/modules/system/logging: add the syslogd_t to trusted + object + +We add the syslogd_t to trusted object, because other process need +to have the right to connectto/sendto /dev/log. + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Roy.Li <rongqing.li@windriver.com> +Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> +Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> +Signed-off-by: Yi Zhao <yi.zhao@windriver.com> +--- + policy/modules/system/logging.te | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te +index 3cab14381..caf319f04 100644 +--- a/policy/modules/system/logging.te ++++ b/policy/modules/system/logging.te +@@ -491,6 +491,9 @@ fs_getattr_all_fs(syslogd_t) + fs_search_auto_mountpoints(syslogd_t) + + mls_file_write_all_levels(syslogd_t) # Need to be able to write to /var/run/ and /var/log directories ++mls_socket_write_all_levels(syslogd_t) # Need to be able to sendto dgram ++mls_trusted_object(syslogd_t) # Other process need to have the right to connectto/sendto /dev/log ++mls_fd_use_all_levels(syslogd_t) + + term_write_console(syslogd_t) + # Allow syslog to a terminal +-- +2.25.1 + |