mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-24 02:07:33 +03:00
runcon: add page (#3297)
This commit is contained in:
parent
4a37a5b067
commit
5fec60d015
20
pages/linux/runcon.md
Normal file
20
pages/linux/runcon.md
Normal file
@ -0,0 +1,20 @@
|
||||
# runcon
|
||||
|
||||
> Run a program in a different SELinux security context.
|
||||
> With neither context nor command, print the current security context.
|
||||
|
||||
- Determine the current domain:
|
||||
|
||||
`runcon`
|
||||
|
||||
- Specify the domain to run a command in:
|
||||
|
||||
`runcon -t {{domain}}_t {{command}}`
|
||||
|
||||
- Specify the context role to run a command with:
|
||||
|
||||
`runcon -r {{role}}_r {{command}}`
|
||||
|
||||
- Specify the full context to run a command with:
|
||||
|
||||
`runcon {{user}}_u:{{role}}_r:{{domain}}_t {{command}}`
|
Loading…
Reference in New Issue
Block a user