runcon
v(uutils coreutils) 0.1.0
Options
--compute
,-c
-
runcon-help-compute
--user=<USER>
,-u <USER>
-
runcon-help-user
--role=<ROLE>
,-r <ROLE>
-
runcon-help-role
--type=<TYPE>
,-t <TYPE>
-
runcon-help-type
--range=<RANGE>
,-l <RANGE>
-
runcon-help-range
Examples
Print the security context of the current execution context:
runcon
Specify the domain to run a command in:
runcon {{[-t|--type]}} {{domain}}_t {{command}}
Specify the context role to run a command with:
runcon {{[-r|--role]}} {{role}}_r {{command}}
Specify the full context to run a command with:
runcon {{user}}_u:{{role}}_r:{{domain}}_t {{command}}
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.