Home | History | Annotate | Download | only in ru
"restorecon" "8" "10 2016" "" " SELinux"
""
restorecon - SELinux- .
""
restorecon [ -r | -R ] [ -m ] [ -n ] [ -p ] [ -v ] [ -i ] [ -F ] [ -W ] [ -I | -D ] [ -e directory ] pathname ...

restorecon [ -f infilename ] [ -e directory ] [ -r | -R ] [ -m ] [ -n ] [ -p ] [ -v ] [ -i ] [ -F ] [ -W ] [ -I | -D ]

""
restorecon.

( ) .

, , , -n , , , ( ).

, restorecon . , restorecon , . -F .

SELinux customizable ( : /etc/selinux/{SELINUXTYPE}/contexts/customizable_types), restorecon -F.

setfiles, argv[0].

""

-e directory ( , ; ).

-f infilename infilename . \*(lq - \*(rq stdin.

-F , file_context ( , , , , ).

-h, -? .

-i , .

-I , , SHA1 SHA1 . ( ) . .

-D SHA1 . , security.restorecon_last.

-m /proc/mounts seclabel, . seclabel, seclabel.

-n ( ). , , -v.

-o outfilename .

-p , ( - 1 ( 1000 )). , . , -p -v .

-R, -r ( ).

-v . -v . , -v -p .

-W , , selabel_stats (3).

-0 , ( ). , . (end-of-file string), , . , , . -print0 GNU find , .

""
pathname ... (), .
""
"1." 4
restorecon .
"2." 4
pathname , -vR -vr, , FS_RELABEL , , " ".
"3." 4
( , -R -r ), -D restorecon SHA1 security.restorecon_last , pathname ... , . , restorecon -D pathname. selinux_restorecon (3). -I SHA1 , pathname ... , , , -n , , ( ).
" "
setfiles (8), fixfiles (8), load_policy (8), checkpolicy (8), customizable_types (5)
""
man- Dan Walsh <dwalsh (at] redhat.com>. man- man- setfiles, Russell Coker <russell (at] coker.com.au>. Dan Walsh <dwalsh (at] redhat.com>. <gammaray (at] basealt.ru>.