All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bond Masuda <bond.masuda@jlbond.com>
To: selinux@tycho.nsa.gov
Subject: How do you relabel all SELinux file contexts of an offline system's file system?
Date: Tue, 4 Aug 2015 15:33:05 -0700	[thread overview]
Message-ID: <55C13DA1.2070601@jlbond.com> (raw)

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

             reply	other threads:[~2015-08-04 22:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-04 22:33 Bond Masuda [this message]
2015-08-05  6:54 ` How do you relabel all SELinux file contexts of an offline system's file system? 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

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=55C13DA1.2070601@jlbond.com \
    --to=bond.masuda@jlbond.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.