Skip to contentSkip to conversation

Add fcontext for rsyslog pidfile

PATCH New Laurent Bigonville 2 participants 2 messages Jan 29, 2014 – Feb 1, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add fcontext for rsyslog pidfile

From: Laurent Bigonville <[email protected]>

---
 policy/modules/system/logging.fc | 1 +
 1 file changed, 1 insertion(+)
policy/modules/system/logging.fc +1 -0
index b50c5fe..e30f25c 100644
@@ -62,6 +62,7 @@ ifdef(`distro_redhat',`
 /var/run/klogd\.pid	--	gen_context(system_u:object_r:klogd_var_run_t,s0)
 /var/run/log		-s	gen_context(system_u:object_r:devlog_t,s0)
 /var/run/metalog\.pid	--	gen_context(system_u:object_r:syslogd_var_run_t,s0)
+/var/run/rsyslogd\.pid	--	gen_context(system_u:object_r:syslogd_var_run_t,mls_systemhigh)
 /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)
Signature · 1 line
1.9.rc1
#1 lore raw

PATCH v2 1/1 Add fcontext for rsyslog pidfile

Quoted 11 lines · Laurent Bigonville

From: Laurent Bigonville <[email protected]>

---
 policy/modules/system/logging.fc | 1 +
 1 file changed, 1 insertion(+)
policy/modules/system/logging.fc +0 -0
index b50c5fe..e30f25c 100644

policy/modules/system/logging.fc ifdef(`distro_redhat',` · line 68

Quoted 7 lines
policy/modules/system/logging.fc +1 -0
@@ -62,6 +62,7 @@ ifdef(`distro_redhat',`
 /var/run/klogd\.pid	--	gen_context(system_u:object_r:klogd_var_run_t,s0)
 /var/run/log		-s	gen_context(system_u:object_r:devlog_t,s0)
 /var/run/metalog\.pid	--	gen_context(system_u:object_r:syslogd_var_run_t,s0)
+/var/run/rsyslogd\.pid	--	gen_context(system_u:object_r:syslogd_var_run_t,mls_systemhigh)
 /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)

Merged.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com