Re: fixfiles, setfiles and restorecon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

On 11/01/2011 05:27 AM, Artur Szymczak wrote:
> Hi,
> 
> I'm wondering which command and when should I use. Yes, I read man,
> but it doesn't help. IMHO they do the same things.
> 

Almost always restorecon is what you want to use.  fixfiles is just a
shell wrapper around restorcon/setfiles that can be used for other
advanced features like relabeling the entire disk, or relabeling the
contents of an RPM.  setfiles and restorecon are actually the same
program, with different interfaces.  setfiles can be used to initially
label a disk based off a file_contexts file, while restorecon will
always use the default file_context file.  The reason there are two
interfaces is really historical.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6v8nYACgkQrlYvE4MpobNzWQCeP4PXRHyTDjoTg454BB02L9oe
/PMAmQEP0W47l7l4//+F/CayrvguQ/5A
=YXIU
-----END PGP SIGNATURE-----
--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux



[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux