commands.sh

runcon

linux

Run a program in a different SELinux security context. See also: `secon`.

More info →

Options (2)

-t, --typeboolean

Specify the domain to run a command in

Example: runcon {{[-t|--type]}} {{domain}}_t {{command}}
-r, --roleboolean

Specify the context role to run a command with

Example: runcon {{[-r|--role]}} {{role}}_r {{command}}

Examples (4)

Print the security context of the current execution context

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
made by @shridhargupta | data from tldr-pages