All of lore.kernel.org
 help / color / mirror / Atom feed
* restorecon and chroot
@ 2010-07-15  4:27 Russell Coker
  2010-07-15 13:43 ` Daniel J Walsh
  0 siblings, 1 reply; 4+ messages in thread
From: Russell Coker @ 2010-07-15  4:27 UTC (permalink / raw)
  To: SE-Linux

I think that we need an option for restorecon which is similar to the -r 
option of setfiles.

This would be useful for setting up chroot environments and possibly also for 
system recovery.

Any suggestion on what command-line option should be used?  It seems that -r 
is taken...

-- 
russell@coker.com.au
http://etbe.coker.com.au/          My Main Blog
http://doc.coker.com.au/           My Documents Blog

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: restorecon and chroot
  2010-07-15  4:27 restorecon and chroot Russell Coker
@ 2010-07-15 13:43 ` Daniel J Walsh
  2010-07-17  5:14   ` Russell Coker
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel J Walsh @ 2010-07-15 13:43 UTC (permalink / raw)
  To: russell; +Cc: SE-Linux

On 07/15/2010 12:27 AM, Russell Coker wrote:
> I think that we need an option for restorecon which is similar to the -r 
> option of setfiles.
> 
> This would be useful for setting up chroot environments and possibly also for 
> system recovery.
> 
> Any suggestion on what command-line option should be used?  It seems that -r 
> is taken...
> 
Why not just use setfiles, since you will need to specify the
file_context path anyways?

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: restorecon and chroot
  2010-07-15 13:43 ` Daniel J Walsh
@ 2010-07-17  5:14   ` Russell Coker
  2010-07-19 13:55     ` Daniel J Walsh
  0 siblings, 1 reply; 4+ messages in thread
From: Russell Coker @ 2010-07-17  5:14 UTC (permalink / raw)
  To: Daniel J Walsh; +Cc: SE-Linux

On Thu, 15 Jul 2010, Daniel J Walsh <dwalsh@redhat.com> wrote:
> Why not just use setfiles, since you will need to specify the
> file_context path anyways?

setfiles requires that you specify the full path of the file_contexts file, 
this means that documentation that refers to it has to be distribution 
specific to a certain extent and it's annoying to use.

Now if setfiles could default to using the same file_contexts file that 
restorecon uses then that objection would go away.  Do you think we should 
change setfiles in such a manner?

-- 
russell@coker.com.au
http://etbe.coker.com.au/          My Main Blog
http://doc.coker.com.au/           My Documents Blog

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: restorecon and chroot
  2010-07-17  5:14   ` Russell Coker
@ 2010-07-19 13:55     ` Daniel J Walsh
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel J Walsh @ 2010-07-19 13:55 UTC (permalink / raw)
  To: russell; +Cc: SE-Linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/17/2010 01:14 AM, Russell Coker wrote:
> On Thu, 15 Jul 2010, Daniel J Walsh <dwalsh@redhat.com> wrote:
>> Why not just use setfiles, since you will need to specify the
>> file_context path anyways?
> 
> setfiles requires that you specify the full path of the file_contexts file, 
> this means that documentation that refers to it has to be distribution 
> specific to a certain extent and it's annoying to use.
> 
> Now if setfiles could default to using the same file_contexts file that 
> restorecon uses then that objection would go away.  Do you think we should 
> change setfiles in such a manner?
> 
Ok, so you want restorecon to use an alternate root dir.  I
misunderstood.  The reason I originally wrote restorecon was I got sick
of specifying the path.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkxEWUgACgkQrlYvE4MpobN69gCgxJpwK5FMgbc58v5pcVOjL91E
0zcAnAroL61TitjY3WvBCHotKdE5Oq6a
=Qi/5
-----END PGP SIGNATURE-----

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-19 13:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-15  4:27 restorecon and chroot Russell Coker
2010-07-15 13:43 ` Daniel J Walsh
2010-07-17  5:14   ` Russell Coker
2010-07-19 13:55     ` Daniel J Walsh

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.