From: Stephen Smalley <sds@tycho.nsa.gov>
To: Eric Paris <eparis@parisplace.org>
Cc: Steve Lawrence <slawrence@tresys.com>,
Richard Haines <richard_c_haines@btinternet.com>,
selinux@tycho.nsa.gov
Subject: Re: CIL/SELinux Userspace Integration
Date: Thu, 08 Dec 2011 08:28:05 -0500 [thread overview]
Message-ID: <1323350885.13613.3.camel@moss-pluto> (raw)
In-Reply-To: <CACLa4pumnzC-HXMhm2YKEEx3WJBtSYQpejkEJ-tM8Czm1inqaQ@mail.gmail.com>
On Wed, 2011-12-07 at 15:15 -0500, Eric Paris wrote:
> So the problem comes from the code which creates the files in
> /selinux/booleans. It does an explicit check for a genfs rule for
> selinuxfs to label the new inode. I'm not certain why we need this
> bit of code. Maybe it is there to support labeling of individual
> booleans somehow, but I don't see how of why this particular piece of
> code is needed. In any case I believe (Steve tested but I'm not
> exactly sure what he did) that you can add a genfs statement for
> selinuxfs and it will start working...
Yes, it was to support per-boolean labeling. However, as you note, lack
of a matching entry for selinuxfs in policy shouldn't be fatal for
policy load, so we should at least ignore ENOENT from
security_genfs_sid() there. There is a larger issue there however; any
failure in sel_make_bools, sel_make_classes, or sel_make_policycap will
return an error to userspace, causing it to think that the policy load
failed (which triggers an unwind of the transaction by libsemanage,
reverting to the prior policy file), but we have already switched
policies in the kernel as part of security_load_policy().
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2011-12-08 13:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-03 16:30 CIL/SELinux Userspace Integration Richard Haines
2011-12-07 13:32 ` Steve Lawrence
2011-12-07 13:54 ` Eric Paris
2011-12-07 14:04 ` Steve Lawrence
2011-12-07 18:45 ` Eric Paris
2011-12-07 20:15 ` Eric Paris
2011-12-08 12:25 ` Richard Haines
2011-12-08 13:28 ` Stephen Smalley [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-12-07 17:01 Richard Haines
2011-12-07 18:02 ` Steve Lawrence
2011-11-22 22:00 Steve Lawrence
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=1323350885.13613.3.camel@moss-pluto \
--to=sds@tycho.nsa.gov \
--cc=eparis@parisplace.org \
--cc=richard_c_haines@btinternet.com \
--cc=selinux@tycho.nsa.gov \
--cc=slawrence@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.