All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Paris <eparis@redhat.com>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>,
	Eric Paris <eparis@parisplace.org>,
	selinux@tycho.nsa.gov
Subject: Re: [PATCH 029/155] policycoreutils: fixfiles clean up /var/run and
Date: Thu, 04 Aug 2011 17:00:13 -0400	[thread overview]
Message-ID: <4E3B085D.1050400@redhat.com> (raw)
In-Reply-To: <4E3B007B.1020502@redhat.com>

On 08/04/2011 04:26 PM, Daniel J Walsh wrote:
> On 08/04/2011 03:33 PM, Stephen Smalley wrote:
>> On Thu, 2011-08-04 at 13:59 -0400, Eric Paris wrote:
>>> well I guess [selinuxfs]/initial_contexts/unlabeled works for the 
>>> first part, but how to come up with the lib_t/var_t I don't
>>> know.... more initial sids   :)
>>
>> chcon --reference=/lib ... chcon --reference=/var ...
>>
>> Or: chcon `matchpathcon /lib` ...
>>
>>
> 	
> 
> How about this patch...

If you don't have /selinux mounted in one of those two places secon -t
will return your process type, which might delete the wrong files.

Not that it makes a huge difference, but we don't really need to pare it
down to just the type with secon -t and then search using *$TYPE*.

I also question the use of /sys/fs/selinux/ but I'm not sure we have a
good way to find that in a script.....  Do we have one?

-Eric

--
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:[~2011-08-04 21:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-03 20:56 [PATCH 029/155] policycoreutils: fixfiles clean up /var/run and Daniel J Walsh
2011-08-04 14:56 ` Stephen Smalley
2011-08-04 16:42   ` Daniel J Walsh
2011-08-04 17:33   ` Eric Paris
2011-08-04 19:16     ` Christopher J. PeBenito
     [not found]     ` <CACLa4puk2gO=aV=oNj-Kmj=eSmYmquX0skKoCxso6o9tWcf_Ng@mail.gmail.com>
2011-08-04 19:33       ` Stephen Smalley
2011-08-04 20:26         ` Daniel J Walsh
2011-08-04 21:00           ` Eric Paris [this message]
2011-08-04 21:06             ` Daniel J Walsh
2011-08-04 21:10               ` Eric Paris
2011-08-04 21:50                 ` Daniel J Walsh
2011-08-05 14:18                   ` Stephen Smalley
2011-08-05 14:45                     ` Daniel J Walsh
2011-08-05 15:10                       ` Eric Paris
2011-08-05 15:34                         ` Daniel J Walsh

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=4E3B085D.1050400@redhat.com \
    --to=eparis@redhat.com \
    --cc=dwalsh@redhat.com \
    --cc=eparis@parisplace.org \
    --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.