All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: Luis Ressel <aranea@aixah.de>
Cc: SELinux <selinux@tycho.nsa.gov>, Eric Paris <eparis@parisplace.org>
Subject: Re: Mount of cgroup filesystems fails when booting in SELinux enforcing mode
Date: Fri, 15 Feb 2013 14:30:11 -0500	[thread overview]
Message-ID: <511E8CC3.7010207@tycho.nsa.gov> (raw)
In-Reply-To: <20130215194414.611081d4@gentp.lnet>

[-- Attachment #1: Type: text/plain, Size: 831 bytes --]

On 02/15/2013 01:44 PM, Luis Ressel wrote:
> Again, you're right. On this boot, dontaudit rules were actually
> enabled. Now, here's another log where they are disabled again.

This line from your log file:

audit_printk_skb: 643 callbacks suppressed

indicates that you are hitting the printk ratelimit (to prevent flooding 
of syslog) and therefore dropping messages.

You could apply the attached patch or something like it to disable the 
printk ratelimit on audit messages.

However, you might want to first fix some of the obvious denials in your 
policy.  The rlimitinh, siginh, and noatsecure ones can generally be 
ignored.  But you are getting various other denials that likely should 
be allowed.  Adding the unconfined module to your policy would 
automatically eliminate any denials for the kernel or init domains.




[-- Attachment #2: audit-noratelimit.diff --]
[-- Type: text/x-patch, Size: 496 bytes --]

diff --git a/kernel/audit.c b/kernel/audit.c
index d596e53..fdcfe1d 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -390,10 +390,7 @@ static void audit_printk_skb(struct sk_buff *skb)
 	char *data = nlmsg_data(nlh);
 
 	if (nlh->nlmsg_type != AUDIT_EOE) {
-		if (printk_ratelimit())
-			printk(KERN_NOTICE "type=%d %s\n", nlh->nlmsg_type, data);
-		else
-			audit_log_lost("printk limit exceeded\n");
+		printk(KERN_NOTICE "type=%d %s\n", nlh->nlmsg_type, data);
 	}
 
 	audit_hold_skb(skb);

  reply	other threads:[~2013-02-15 19:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-14 21:25 Mount of cgroup filesystems fails when booting in SELinux enforcing mode aranea
2013-02-15 13:32 ` Stephen Smalley
2013-02-15 14:06   ` Luis Ressel
2013-02-15 14:28     ` Stephen Smalley
2013-02-15 15:02       ` Luis Ressel
2013-02-15 15:34         ` Stephen Smalley
2013-02-15 16:07           ` Luis Ressel
2013-02-15 18:19             ` Stephen Smalley
2013-02-15 18:44               ` Luis Ressel
2013-02-15 19:30                 ` Stephen Smalley [this message]
2013-02-15 21:03                   ` Luis Ressel

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=511E8CC3.7010207@tycho.nsa.gov \
    --to=sds@tycho.nsa.gov \
    --cc=aranea@aixah.de \
    --cc=eparis@parisplace.org \
    --cc=selinux@tycho.nsa.gov \
    /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.