All of lore.kernel.org
 help / color / mirror / Atom feed
* restoring file attributes
@ 2005-08-03 17:01 rich turner
  2005-08-04 13:17 ` Stephen Smalley
  0 siblings, 1 reply; 2+ messages in thread
From: rich turner @ 2005-08-03 17:01 UTC (permalink / raw)
  To: selinux

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.

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

end of thread, other threads:[~2005-08-04 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-03 17:01 restoring file attributes rich turner
2005-08-04 13:17 ` Stephen Smalley

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.