diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0057-policy-modules-system-logging-fix-systemd-journald-s.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0057-policy-modules-system-logging-fix-systemd-journald-s.patch | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0057-policy-modules-system-logging-fix-systemd-journald-s.patch b/recipes-security/refpolicy/refpolicy/0057-policy-modules-system-logging-fix-systemd-journald-s.patch deleted file mode 100644 index d283879..0000000 --- a/recipes-security/refpolicy/refpolicy/0057-policy-modules-system-logging-fix-systemd-journald-s.patch +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | From 5973dc3824b395ce9f6620e3ae432664cc357b66 Mon Sep 17 00:00:00 2001 | ||
2 | From: Wenzong Fan <wenzong.fan@windriver.com> | ||
3 | Date: Thu, 4 Feb 2016 02:10:15 -0500 | ||
4 | Subject: [PATCH] policy/modules/system/logging: fix systemd-journald startup | ||
5 | failures | ||
6 | |||
7 | Fixes: | ||
8 | avc: denied { audit_control } for pid=109 comm="systemd-journal" | ||
9 | capability=30 scontext=system_u:system_r:syslogd_t | ||
10 | tcontext=system_u:system_r:syslogd_t tclass=capability permissive=0 | ||
11 | |||
12 | avc: denied { search } for pid=233 comm="systemd-journal" name="/" | ||
13 | dev="tmpfs" ino=12398 scontext=system_u:system_r:syslogd_t | ||
14 | tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=0 | ||
15 | |||
16 | Upstream-Status: Inappropriate [embedded specific] | ||
17 | |||
18 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | ||
19 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
20 | --- | ||
21 | policy/modules/system/logging.te | 3 +++ | ||
22 | 1 file changed, 3 insertions(+) | ||
23 | |||
24 | diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te | ||
25 | index bdd97631c..62caa7a56 100644 | ||
26 | --- a/policy/modules/system/logging.te | ||
27 | +++ b/policy/modules/system/logging.te | ||
28 | @@ -492,6 +492,7 @@ files_var_lib_filetrans(syslogd_t, syslogd_var_lib_t, { file dir }) | ||
29 | |||
30 | fs_getattr_all_fs(syslogd_t) | ||
31 | fs_search_auto_mountpoints(syslogd_t) | ||
32 | +fs_search_tmpfs(syslogd_t) | ||
33 | |||
34 | mls_file_write_all_levels(syslogd_t) # Need to be able to write to /var/run/ and /var/log directories | ||
35 | |||
36 | @@ -552,6 +553,8 @@ ifdef(`init_systemd',` | ||
37 | # needed for systemd-initrd case when syslog socket is unlabelled | ||
38 | logging_send_syslog_msg(syslogd_t) | ||
39 | |||
40 | + logging_set_loginuid(syslogd_t) | ||
41 | + | ||
42 | systemd_manage_journal_files(syslogd_t) | ||
43 | |||
44 | udev_read_runtime_files(syslogd_t) | ||
45 | -- | ||
46 | 2.17.1 | ||
47 | |||