runcon
Run a program in a different SELinux security context. With neither context nor command, print the current security context. More information: <https://www.gnu.org/software/coreutils/runcon>.
Install
- All systems
-
curl cmd.cat/runcon.sh
- Debian
-
apt-get install coreutils
- Ubuntu
-
apt-get install coreutils
- Alpine
-
apk add coreutils
- Arch Linux
-
pacman -S coreutils
- Kali Linux
-
apt-get install coreutils
- CentOS
-
yum install coreutils
- Fedora
-
dnf install coreutils
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install coreutils
- OS X
-
brew install coreutils
- Raspbian
-
apt-get install coreutils
- Dockerfile
- dockerfile.run/runcon
- Docker
-
docker run cmd.cat/runcon runcon
powered by Commando
Run a program in a different SELinux security context. With neither context nor command, print the current security context. More information: <https://www.gnu.org/software/coreutils/runcon>.
-
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
© tl;dr; authors and contributors