All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Brindle <jbrindle@tresys.com>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: We need a tool to extract the file context contents out of a policy package.
Date: Mon, 13 Mar 2006 10:13:34 -0500	[thread overview]
Message-ID: <44158C1E.9060507@tresys.com> (raw)
In-Reply-To: <44158A89.7040004@redhat.com>

Daniel J Walsh wrote:
> Joshua Brindle wrote:
>> Daniel J Walsh wrote:
>>> If we had this we could do something like
>>>
>>> fixfiles -P mypolicy.pp
>>>
>>> And it would restorecon over the file context.
>>
>> the file contexts in any given package doesn't represent the file 
>> contexts on the system. Further, you'll lose the homedir and local 
>> entries (and if there are homedir entries present they'll lose their 
>> precedence)
>>
>> what is the problem you are trying to solve? I think we can do this a 
>> better way.
> If I install a package I need a way of relabeling the files that are 
> being installed.  Currently when the policy package gets updated, it 
> does a diff between previous file_context and new file_context and then 
> runs a restorecon on the diff.  We currently ignore homedirs.  Moving to 
> modules, we need similar capabilities.  Relabeling the entire system 
> ever time you update a policy module is not going to work.     The 
> current method is not full proof, but it has been fairly effective over 
> the last couple of years.
> 

We can add diffing/restorecon functionality to semanage. I don't know if 
it is fair to assume that one modules file_contexts won't interact in 
unexpected ways with other modules and base file_contexts so we should 
probably always handle the file_contexts in their entirety and never alone.

--
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:[~2006-03-13 15:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-11 12:22 We need a tool to extract the file context contents out of a policy package Daniel J Walsh
2006-03-11 14:10 ` Ivan Gyurdiev
2006-03-11 14:39   ` Daniel J Walsh
2006-03-11 15:07 ` Joshua Brindle
2006-03-13 15:06   ` Daniel J Walsh
2006-03-13 15:13     ` 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=44158C1E.9060507@tresys.com \
    --to=jbrindle@tresys.com \
    --cc=dwalsh@redhat.com \
    --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.