All of lore.kernel.org
 help / color / mirror / Atom feed
* How do you relabel all SELinux file contexts of an offline system's file system?
@ 2015-08-04 22:33 Bond Masuda
  2015-08-05  6:54 ` Jason Zaman
  0 siblings, 1 reply; 10+ messages in thread
From: Bond Masuda @ 2015-08-04 22:33 UTC (permalink / raw)
  To: selinux

Hello,

Normally, if I need to ensure that all the SELinux file contexts are
correct, I run:

restorecon -R -v /

However, in the current situation, I need to do that on a system that is
offline, where I have it's root and entire file system mounted under
/mnt. I tried:

chroot /mnt /usr/sbin/restorecon -R -v /mnt

hoping it would have the same effect, but it does not appear to. When I
boot the offline system, it shows a lot of SELinux mislabelings.

Is there a way to fix SELinux file contexts of another system while it
is offline?

Thanks for any help...
-Bond

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

end of thread, other threads:[~2015-08-18 12:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-04 22:33 How do you relabel all SELinux file contexts of an offline system's file system? Bond Masuda
2015-08-05  6:54 ` Jason Zaman
2015-08-05 12:37   ` Stephen Smalley
2015-08-12  1:02   ` Bond Masuda
2015-08-12  3:37     ` Bond Masuda
2015-08-12  8:46       ` 答复: " rowan
2015-08-12  9:07       ` Bond Masuda
2015-08-13 13:23         ` Stephen Smalley
2015-08-17 23:27           ` Bond Masuda
2015-08-18 12:43             ` 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.