All of lore.kernel.org
 help / color / mirror / Atom feed
From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/1] Remove generic log label for cron location
Date: Tue, 27 Nov 2012 09:28:30 -0500	[thread overview]
Message-ID: <50B4CE0E.8080400@tresys.com> (raw)
In-Reply-To: <20121112215737.GA28692@siphos.be>

On 11/12/12 16:57, Sven Vermeulen wrote:
> 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.

> Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
> ---
>  policy/modules/system/logging.fc |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
> 
> diff --git a/policy/modules/system/logging.fc b/policy/modules/system/logging.fc
> index bcc960b..b50c5fe 100644
> --- a/policy/modules/system/logging.fc
> +++ b/policy/modules/system/logging.fc
> @@ -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)
> 


-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

      reply	other threads:[~2012-11-27 14:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-12 21:57 [refpolicy] [PATCH 1/1] Remove generic log label for cron location Sven Vermeulen
2012-11-27 14:28 ` Christopher J. PeBenito [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50B4CE0E.8080400@tresys.com \
    --to=cpebenito@tresys.com \
    --cc=refpolicy@oss.tresys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.