FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora SELinux Support

 
 
LinkBack Thread Tools
 
Old 11-01-2011, 08:27 AM
Artur Szymczak
 
Default fixfiles, setfiles and restorecon

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.

--
Artur Szymczak | RHCE: 100-001-734 | CAcert Assurer
RHCA, RHCSS, RHCX, CLE11, CNI, UCP-1, UCI, Linux+, LPIC-2
GPG: C03A 385E 5C10 82C5 6564 C1E9 3D6A 616E B15D 122D
http://CodzienneChodzenieZBogiem.blogspot.com/

--
selinux mailing list
selinux@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/selinux
 
Old 11-01-2011, 12:21 PM
Daniel J Walsh
 
Default fixfiles, setfiles and restorecon

-----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/

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

Thread Tools




All times are GMT. The time now is 05:21 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org