All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Brindle <method@manicmethod.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Karl MacMillan <kmacmillan@mentalrootkit.com>,
	selinux@tycho.nsa.gov, Darrel Goeddel <dgoeddel@TrustedCS.com>
Subject: Re: [PATCH -trunk][RFC] setsebool: only use libsemanage for	persistent boolean changes
Date: Thu, 19 Apr 2007 16:27:38 -0400	[thread overview]
Message-ID: <4627D0BA.6070600@manicmethod.com> (raw)
In-Reply-To: <1177013143.27654.257.camel@moss-spartans.epoch.ncsc.mil>

Stephen Smalley wrote:
> On Thu, 2007-04-19 at 14:36 -0400, Karl MacMillan wrote:
>   
>> On Thu, 2007-04-19 at 14:36 -0400, Stephen Smalley wrote:
>>     
>>> While the optimizations I introduced for libsemanage helped somewhat in reducing the
>>> extraneous work done by setsebool for transient boolean changes, there were still a lot
>>> of files that were unnecessarily created or modified due to the entire transactional model of
>>> libsemanage, and I couldn't see a clean way of fixing that.  In retrospect, while libsemanage
>>> needs to understand active booleans in order to affect persistent changes (due to boolean
>>> preservation on reloads), setsebool should just apply active boolean changes directly via libselinux.
>>> And with the dropped setlocaldefs support, we can require managed policy for persistent boolean
>>> changes.
>>>
>>>       
>> The only problem is if semanage starts enforcing access control on the
>> booleans in a different way than the selinuxfs nodes. In that case we
>> want the change to go through libsemanage.
>>
>> Personally, I think that libsemanage should just fake file access
>> decisions for persistent changes, but Josh never liked that idea.
>>     
>
> I think they need to be consistent, so emulating file access checks
> works for me.  And that will simplify life when we switch over to
> path-based access control ;)
>   
Arg! I think we should abstract booleans into a proper object class so 
that we can do consistent access control regardless of the mechanism 
controlling them. I don't know though, without any way to change 
genfscon aside from replacing the base policy we are really limiting the 
access control that can be done on booleans.

OTOH we can't use just policy server style labeling if we want any kind 
of access control without a policy server. There aren't any really good 
solutions, which is why this hasn't been fixed yet.

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

      reply	other threads:[~2007-04-19 20:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-19 18:36 [PATCH -trunk][RFC] setsebool: only use libsemanage for persistent boolean changes Stephen Smalley
2007-04-19 18:36 ` Karl MacMillan
2007-04-19 20:05   ` Stephen Smalley
2007-04-19 20:27     ` Joshua Brindle [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=4627D0BA.6070600@manicmethod.com \
    --to=method@manicmethod.com \
    --cc=dgoeddel@TrustedCS.com \
    --cc=kmacmillan@mentalrootkit.com \
    --cc=sds@tycho.nsa.gov \
    --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.