All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Stephen Smalley <sds@epoch.ncsc.mil>
Cc: Daniel J Walsh <dwalsh@redhat.com>, SELinux <SELinux@tycho.nsa.gov>
Subject: Re: Patch to restorecon to add -R switch
Date: Tue, 5 Oct 2004 22:26:44 +0100	[thread overview]
Message-ID: <20041005212644.GL25251@lkcl.net> (raw)
In-Reply-To: <1096999568.3878.126.camel@moss-spartans.epoch.ncsc.mil>

On Tue, Oct 05, 2004 at 02:06:08PM -0400, Stephen Smalley wrote:
> On Mon, 2004-09-27 at 13:28, Daniel J Walsh wrote:
> > Also patch adds some fixed for fixfiles.
> 
> > --- policycoreutils-1.17.5/scripts/fixfiles.rhat	2004-08-30 11:46:47.000000000 -0400
> > +++ policycoreutils-1.17.5/scripts/fixfiles	2004-09-24 18:46:15.672622592 -0400
> > @@ -36,6 +36,8 @@
> >  FILESYSTEMSRO=`mount | grep -v "context=" | egrep -v '\((|.*,)bind(,.*|)\)' | awk '/(ext[23]| xfs | reiserfs ).*\(ro/{print $3}';`
> >  FILESYSTEMS="$FILESYSTEMSRW $FILESYSTEMSRO"
> >  SELINUXTYPE="targeted"
> > +FCFILE=`mktemp /var/tmp/file_contexts.XXXXXXXXXX`
> > +trap "rm -f $FCFILE; exit 2" 1 2 3 5 15 
> 
> I thought we had agreed that generating a temporary FCFILE was
> undesirable and unnecessary, given that:
> a) it requires allow setfiles to take temporary files as input (not
> allowed by strict policy),
> b) /dev nodes are no longer touched by setfiles anyway due to use of
> tmpfs and udev.
 
  could somebody _please_ explain to me why /.dev should
  also not be touched (listed explicitly in files/types.fc),
  _particularly_ when the xattrs could get damaged, such that
  a system [which _doesn't_ do tmpfs+udev in initrd but _does_
  do tmpfs+udev later] could be put into a non-bootable state?

  l.

-- 
--
Truth, honesty and respect are rare commodities that all spring from
the same well: Love.  If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:lkcl@lkcl.net"> lkcl@lkcl.net </a> <br />


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

      parent reply	other threads:[~2004-10-05 21:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-27 17:28 Patch to restorecon to add -R switch Daniel J Walsh
2004-09-28 20:03 ` Luke Kenneth Casson Leighton
2004-09-29 19:08 ` James Carter
2004-10-01 18:28   ` Valdis.Kletnieks
2004-10-01 19:00     ` Daniel J Walsh
2004-10-01 19:43       ` Valdis.Kletnieks
2004-10-04 15:46 ` Stephen Smalley
2004-10-04 15:56   ` Daniel J Walsh
2004-10-05 18:06 ` Stephen Smalley
2004-10-05 18:18   ` Daniel J Walsh
2004-10-05 21:26   ` Luke Kenneth Casson Leighton [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=20041005212644.GL25251@lkcl.net \
    --to=lkcl@lkcl.net \
    --cc=SELinux@tycho.nsa.gov \
    --cc=dwalsh@redhat.com \
    --cc=sds@epoch.ncsc.mil \
    /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.