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

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

On Fri, 15 Feb 2013 14:30:11 -0500
Stephen Smalley <sds@tycho.nsa.gov> wrote:

> 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.

Thanks! Now I finally got a denial message. kernel_t needs search
permissions on unlabeled_t dirs, that's all.

> 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.

Yes, I did all this testing in a VM, not on the system where I
originally encountered these issues, and I didn't fine-tune the VM
policy. And my policy doesn't include the unconfined module because it
was optional in my distro, defaulted to off and I thought it was only
neccessary for targeted mode. But I'll try it out now.


I want to thank you again for your fast and helpful responses. Without
your help, I probably wouldn't have been able to resolve this issue, at
least not within resonable time. You really saved me from having severe
headaches!

Luis

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

      reply	other threads:[~2013-02-15 21:03 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
2013-02-15 21:03                   ` Luis Ressel [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=20130215220321.53fd94c4@gentp.lnet \
    --to=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.