runcon
Run a command in a specified security context. toybox
On Linux
Linux
runcon CONTEXT COMMAND [ARGS...]
Linux
Run a program in a different SELinux security context.
Print the security context of the current execution context
runconIdentifySpecify the domain to run a command in
runcon --type domain_t commandIdentifySpecify the context role to run a command with
runcon --role role_r commandIdentifySpecify the full context to run a command with
runcon user_u:role_r:domain_t commandIdentify