In this howto I will show you a quick sample on how to run a command or script in a specific file-, role- and user-context.
This is usefull if you need to test something before applying a permanent rule.
Use the following command:
runcon -t initrc_t -r system_r -u user_u yourcommandhere
-t is the file context.
-r is the role context.
-u is the user context.