From 5fec60d0156dfe58aa92564d21e9adc07f76503a Mon Sep 17 00:00:00 2001 From: Tony <43508092+tonytheleg@users.noreply.github.com> Date: Tue, 29 Oct 2019 02:45:37 -0400 Subject: [PATCH] runcon: add page (#3297) --- pages/linux/runcon.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/runcon.md diff --git a/pages/linux/runcon.md b/pages/linux/runcon.md new file mode 100644 index 0000000000..ed3a6fa8e9 --- /dev/null +++ b/pages/linux/runcon.md @@ -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}}`