chcon

Change SELinux security context of a file or files/directories. More…

chcon

Change SELinux security context of a file or files/directories. More information: https://www.gnu.org/software/coreutils/chcon.

ls -lZ {{path/to/file}}

chcon --reference={{reference_file}} {{target_file}}

chcon {{user}}:{{role}}:{{type}}:{{range/level}} {{filename}}

chcon -u {{user}} {{filename}}

chcon -r {{role}} {{filename}}

chcon -t {{type}} {{filename}}

chcon -l {{range/level}} {{filename}}

Также может быть вам интересно:
LinuxFreeBSDТрюки BashТерминал/Консоль
← chattr chcpu →