24 lines
1.2 KiB
Diff
24 lines
1.2 KiB
Diff
![]() |
Index: serefpolicy-20140730/policy/modules/system/logging.fc
|
||
|
===================================================================
|
||
|
--- serefpolicy-20140730.orig/policy/modules/system/logging.fc
|
||
|
+++ serefpolicy-20140730/policy/modules/system/logging.fc
|
||
|
@@ -83,6 +83,7 @@ ifdef(`distro_redhat',`
|
||
|
/var/run/syslogd\.pid -- gen_context(system_u:object_r:syslogd_var_run_t,mls_systemhigh)
|
||
|
/var/run/syslog-ng.ctl -- gen_context(system_u:object_r:syslogd_var_run_t,s0)
|
||
|
/var/run/syslog-ng(/.*)? gen_context(system_u:object_r:syslogd_var_run_t,s0)
|
||
|
+/var/run/rsyslog(/.*)? gen_context(system_u:object_r:syslogd_var_run_t,s0)
|
||
|
/var/run/systemd/journal/syslog -s gen_context(system_u:object_r:devlog_t,mls_systemhigh)
|
||
|
|
||
|
/var/spool/audit(/.*)? gen_context(system_u:object_r:audit_spool_t,mls_systemhigh)
|
||
|
Index: serefpolicy-20140730/policy/modules/system/init.te
|
||
|
===================================================================
|
||
|
--- serefpolicy-20140730.orig/policy/modules/system/init.te
|
||
|
+++ serefpolicy-20140730/policy/modules/system/init.te
|
||
|
@@ -1676,3 +1676,6 @@ optional_policy(`
|
||
|
ccs_read_config(daemon)
|
||
|
')
|
||
|
')
|
||
|
+
|
||
|
+# relabel /var/run/rsyslog
|
||
|
+filetrans_pattern(init_t, var_run_t, syslogd_var_run_t, dir, "rsyslog")
|