diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy-git/0003-fc-sysklogd-apply-policy-to-sysklogd-symlink.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy-git/0003-fc-sysklogd-apply-policy-to-sysklogd-symlink.patch | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/recipes-security/refpolicy/refpolicy-git/0003-fc-sysklogd-apply-policy-to-sysklogd-symlink.patch b/recipes-security/refpolicy/refpolicy-git/0003-fc-sysklogd-apply-policy-to-sysklogd-symlink.patch deleted file mode 100644 index f194d6d..0000000 --- a/recipes-security/refpolicy/refpolicy-git/0003-fc-sysklogd-apply-policy-to-sysklogd-symlink.patch +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | From d0fd07dda45b349af634e4671a70e47fef102386 Mon Sep 17 00:00:00 2001 | ||
2 | From: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
3 | Date: Thu, 22 Aug 2013 13:39:41 +0800 | ||
4 | Subject: [PATCH 03/34] fc/sysklogd: apply policy to sysklogd symlink | ||
5 | |||
6 | /etc/syslog.conf is a symlink to /etc/syslog.conf.sysklogd, so a allow | ||
7 | rule for syslogd_t to read syslog_conf_t lnk_file is needed. | ||
8 | |||
9 | Upstream-Status: Inappropriate [only for Poky] | ||
10 | |||
11 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
12 | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> | ||
13 | --- | ||
14 | policy/modules/system/logging.fc | 3 +++ | ||
15 | policy/modules/system/logging.te | 1 + | ||
16 | 2 files changed, 4 insertions(+) | ||
17 | |||
18 | diff --git a/policy/modules/system/logging.fc b/policy/modules/system/logging.fc | ||
19 | index 6693d87b..0cf108e0 100644 | ||
20 | --- a/policy/modules/system/logging.fc | ||
21 | +++ b/policy/modules/system/logging.fc | ||
22 | @@ -2,6 +2,7 @@ | ||
23 | |||
24 | /etc/rsyslog\.conf -- gen_context(system_u:object_r:syslog_conf_t,s0) | ||
25 | /etc/syslog\.conf -- gen_context(system_u:object_r:syslog_conf_t,s0) | ||
26 | +/etc/syslog\.conf\.sysklogd gen_context(system_u:object_r:syslog_conf_t,s0) | ||
27 | /etc/rsyslog\.d(/.*)? gen_context(system_u:object_r:syslog_conf_t,s0) | ||
28 | /etc/audit(/.*)? gen_context(system_u:object_r:auditd_etc_t,mls_systemhigh) | ||
29 | /etc/systemd/journal.*\.conf -- gen_context(system_u:object_r:syslog_conf_t,s0) | ||
30 | @@ -32,10 +33,12 @@ | ||
31 | /usr/sbin/auditctl -- gen_context(system_u:object_r:auditctl_exec_t,s0) | ||
32 | /usr/sbin/auditd -- gen_context(system_u:object_r:auditd_exec_t,s0) | ||
33 | /usr/sbin/klogd -- gen_context(system_u:object_r:klogd_exec_t,s0) | ||
34 | +/usr/sbin/klogd\.sysklogd -- gen_context(system_u:object_r:klogd_exec_t,s0) | ||
35 | /usr/sbin/metalog -- gen_context(system_u:object_r:syslogd_exec_t,s0) | ||
36 | /usr/sbin/minilogd -- gen_context(system_u:object_r:syslogd_exec_t,s0) | ||
37 | /usr/sbin/rklogd -- gen_context(system_u:object_r:klogd_exec_t,s0) | ||
38 | /usr/sbin/rsyslogd -- gen_context(system_u:object_r:syslogd_exec_t,s0) | ||
39 | +/usr/sbin/syslogd\.sysklogd -- gen_context(system_u:object_r:syslogd_exec_t,s0) | ||
40 | /usr/sbin/syslog-ng -- gen_context(system_u:object_r:syslogd_exec_t,s0) | ||
41 | /usr/sbin/syslogd -- gen_context(system_u:object_r:syslogd_exec_t,s0) | ||
42 | |||
43 | diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te | ||
44 | index 0c5be1cd..38ccfe3a 100644 | ||
45 | --- a/policy/modules/system/logging.te | ||
46 | +++ b/policy/modules/system/logging.te | ||
47 | @@ -399,6 +399,7 @@ allow syslogd_t self:udp_socket create_socket_perms; | ||
48 | allow syslogd_t self:tcp_socket create_stream_socket_perms; | ||
49 | |||
50 | allow syslogd_t syslog_conf_t:file read_file_perms; | ||
51 | +allow syslogd_t syslog_conf_t:lnk_file read_file_perms; | ||
52 | allow syslogd_t syslog_conf_t:dir list_dir_perms; | ||
53 | |||
54 | # Create and bind to /dev/log or /var/run/log. | ||
55 | -- | ||
56 | 2.19.1 | ||
57 | |||