1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/runcon.md

22 lines
566 B
Markdown
Raw Normal View History

2019-10-29 02:45:37 -04:00
# runcon
> Run a program in a different SELinux security context.
> See also: `secon`.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/runcon-invocation.html>.
2019-10-29 02:45:37 -04:00
- Print the security context of the current execution context:
2019-10-29 02:45:37 -04:00
`runcon`
- Specify the domain to run a command in:
`runcon {{[-t|--type]}} {{domain}}_t {{command}}`
2019-10-29 02:45:37 -04:00
- Specify the context role to run a command with:
`runcon {{[-r|--role]}} {{role}}_r {{command}}`
2019-10-29 02:45:37 -04:00
- Specify the full context to run a command with:
`runcon {{user}}_u:{{role}}_r:{{domain}}_t {{command}}`