All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: SE Linux <selinux@tycho.nsa.gov>,
	Karl MacMillan <kmacmillan@mentalrootkit.com>,
	Joshua Brindle <method@manicmethod.com>
Subject: Re: Proposed patch to lisemanage/policycoreutils patches to	not	run genhomedircon/setfiles when setting booleans.
Date: Mon, 23 Jul 2007 13:21:09 -0400	[thread overview]
Message-ID: <46A4E385.9080009@redhat.com> (raw)
In-Reply-To: <1185210391.5266.12.camel@moss-spartans.epoch.ncsc.mil>

Stephen Smalley wrote:
> On Fri, 2007-07-20 at 16:32 -0400, Daniel J Walsh wrote:
>   
>> Stephen Smalley wrote:
>>     
>>> On Wed, 2007-07-18 at 15:54 -0400, Daniel J Walsh wrote:
>>>   
>>>       
>>>> Takes about 2 seconds off the time to rebuild policy and lots more if 
>>>> you are backending your passwd database with ldap.  Or have many 
>>>> different locations for homedirs.
>>>>     
>>>>         
>>> The way this should work is libsemanage should internally know what
>>> needs to be rebuilt and only rebuild those things.  Not require the
>>> caller to enable/disable parts.
>>>  
>>>   
>>>       
>> I tend to agree, but this at least meets my short term goals.
>>     
>
> Understood, but I don't think we want this approach upstream.  Joshua?
> Karl?  
>
> I'd rather work through the internal issues of libsemanage, as we want
> that anyway so that e.g. semanage login -a doesn't rebuild policy either
> (that was the whole point of moving Linux users out of policy, but
> libsemanage today still rebuilds everything!).
>
>   
Actually semanage login -a would need to run genhomedircon

semanage login - Needs genhomedircon

semanage user needs genhomedircon, rebuild policy

semanage port, interface needs rebuild policy

semodule needs rebuild policy and genhomedircon

semanage fcontext needs genhomedircon, or maybe nothing.

setsebool either needs nothing or rebuild policy.





--
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-07-23 17:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-18 19:54 Proposed patch to lisemanage/policycoreutils patches to not run genhomedircon/setfiles when setting booleans Daniel J Walsh
2007-07-20 17:55 ` Stephen Smalley
2007-07-20 20:32   ` Daniel J Walsh
2007-07-23 17:06     ` Stephen Smalley
2007-07-23 17:21       ` Daniel J Walsh [this message]
2007-07-23 18:10       ` Joshua Brindle

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=46A4E385.9080009@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=kmacmillan@mentalrootkit.com \
    --cc=method@manicmethod.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.