All of lore.kernel.org
 help / color / mirror / Atom feed
From: rich turner <rich@storix.com>
To: selinux@tycho.nsa.gov
Subject: restoring file attributes
Date: Wed, 03 Aug 2005 10:01:27 -0700	[thread overview]
Message-ID: <1123088488.4481.51.camel@rich> (raw)

i am performing a bare-metal restore of system that previously was
selinux-enabled and enforcing. after restoring all of the files on the
system using tar, i need to reset all of the file security contexts
(because tar does not backup or restore extended filesystem attributes).
that leads me to a few questions.

Note: eventhough i am testing with fedora core 4, i am not assuming i
will always be using fc4.

1. i plan to use setfiles to apply extended attributes to files.
however, setfiles requires that i supply the spec_file to use when
applying the attributes. is there a consistent way that i can determine
which spec_file is being used on a running system?

2. is /etc/selinux/config specific to fc4, or can i expect this same
file with the same format on all uses of selinux on linux?

3. on a selinux-enabled and enforcing system, is there a way to know
what SELINUXTYPE is being used? targeted, strict, etc.

4. are "targeted" and "strict" names used by fc4, or will they be
consistent on other distributions?

thanks for any help

rich turner


--
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:[~2005-08-03 17:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-03 17:01 rich turner [this message]
2005-08-04 13:17 ` restoring file attributes Stephen Smalley

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=1123088488.4481.51.camel@rich \
    --to=rich@storix.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.