Home | History | Annotate | Download | only in ru
"setfiles" "8" "10 2016" "" " SELinux"
""
setfiles - SELinux- .
""
setfiles [ -c policy ] [ -d ] [ -l ] [ -m ] [ -n ] [ -e directory ] [ -p ] [ -s ] [ -v ] [ -W ] [ -F ] [ -I | -D ] spec_file pathname ...
""
setfiles.

( ) ( ). SELinux (, ).

, , , -n , , , ( ) - (. -c ).

, setfiles . , setfiles , . -F .

""

-c .

-d , ( ABORT_ON_ERRORS).

-e directory ( , ).

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

-F , file_context ( , , , , ).

-h, -? .

-i , .

-I , , SHA1 SHA1 . ( ) . .

-D SHA1 . , security.restorecon_last.

-l .

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

-n ( ).

-o outfilename .

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

-q , (inode).

-r rootpath . meta-selinux OpenEmbedded/Yocto, rootpath , /

-s , ( \*(lq "-f -" \*(rq ).

-v (inode). , -v -p .

-W , , selabel_stats (3).

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

""

spec_file , : regexp [ type ] context | <<none>> . type ( ls (1) ), , -- -d . context <<none>> ( , ). . , , , , , <<none>> \|.

pathname ... , , , , , . , -f -s .

""
"1." 4
setfiles .
"2." 4
pathname , -v , , FS_RELABEL , , " ".
"3." 4
-D setfiles . SHA1 spec_file security.restorecon_last , pathname ... , . , setfiles -D spec_file pathname selinux_restorecon (3). -I SHA1 , pathname ... , , , -n , , ( ).
" "
restorecon (8), load_policy (8), checkpolicy (8)
""
man- Russell Coker <russell (at] coker.com.au>. Stephen Smalley <sds (at] tycho.nsa.gov>. <gammaray (at] basealt.ru>