Skip to contentSkip to conversation

Remove generic log label for cron location

PATCH New Sven Vermeulen 2 participants 2 messages Nov 12, 2012 – Nov 27, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove generic log label for cron location

The /var/log/cron[^/]* line in the context definition takes higher precedence than the /var/log/cron.* line in the cron.fc file. As a result, when /var/log/cron.log is created it gets relabeled to var_log_t instead of staying with the cron_log_t type it should be.

Removing the line so that the definitions in cron.log are used.

---
 policy/modules/system/logging.fc |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
policy/modules/system/logging.fc +0 -1
index bcc960b..b50c5fe 100644
@@ -41,7 +41,6 @@ ifdef(`distro_suse', `
 /var/log/boot\.log	--	gen_context(system_u:object_r:var_log_t,mls_systemhigh)
 /var/log/messages[^/]*		gen_context(system_u:object_r:var_log_t,mls_systemhigh)
 /var/log/secure[^/]*		gen_context(system_u:object_r:var_log_t,mls_systemhigh)
-/var/log/cron[^/]*		gen_context(system_u:object_r:var_log_t,mls_systemhigh)
 /var/log/maillog[^/]*		gen_context(system_u:object_r:var_log_t,mls_systemhigh)
 /var/log/spooler[^/]*		gen_context(system_u:object_r:var_log_t,mls_systemhigh)
 /var/log/audit(/.*)?		gen_context(system_u:object_r:auditd_log_t,mls_systemhigh)
Signature · 1 line
1.7.8.6
#1 lore raw

PATCH 1/1 Remove generic log label for cron location

Quoted 6 lines · Sven Vermeulen

The /var/log/cron[^/]* line in the context definition takes higher precedence than the /var/log/cron.* line in the cron.fc file. As a result, when /var/log/cron.log is created it gets relabeled to var_log_t instead of staying with the cron_log_t type it should be.

Removing the line so that the definitions in cron.log are used.

Merged.

Quoted 18 lines
---
 policy/modules/system/logging.fc |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
policy/modules/system/logging.fc +0 -1
index bcc960b..b50c5fe 100644
@@ -41,7 +41,6 @@ ifdef(`distro_suse', `
 /var/log/boot\.log	--	gen_context(system_u:object_r:var_log_t,mls_systemhigh)
 /var/log/messages[^/]*		gen_context(system_u:object_r:var_log_t,mls_systemhigh)
 /var/log/secure[^/]*		gen_context(system_u:object_r:var_log_t,mls_systemhigh)
-/var/log/cron[^/]*		gen_context(system_u:object_r:var_log_t,mls_systemhigh)
 /var/log/maillog[^/]*		gen_context(system_u:object_r:var_log_t,mls_systemhigh)
 /var/log/spooler[^/]*		gen_context(system_u:object_r:var_log_t,mls_systemhigh)
 /var/log/audit(/.*)?		gen_context(system_u:object_r:auditd_log_t,mls_systemhigh)
Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com