runcon's Examples

runcon is used to run a command with a specific SELinux context.

runcon system_u:object_r:httpd_sys_content_t ls

runcon runs a command with a specific SELinux security context. It's used for changing the context of a process.

runcon system_u:object_r:user_home_t:s0 command

Runs a command with a specific SELinux security context.

runcon system_u:system_r:unconfined_t:s0 ls /root

DevOpsSchool
Typically replies within an hour

DevOpsSchool
Hi there 👋

How can I help you?
×
Chat with Us