September 2014
Intermediate to advanced
240 pages
5h 53m
English
Using sudo is not mandatory. SELinux also provides a command called runcon that allows users to run a command in a different context. Of course, SELinux restrictions still apply—the user must have the proper privileges to execute commands with a different context.
Running a command using a specified role and type is done by completing the following steps:
entrypoint definition:~$ ls -Z auditctl system_u:object_r:auditctl_exec_t auditctl ~$ sesearch -t auditctl_exec_t -c file -p entrypoint -A Found 1 semantic av rules: allow auditctl_t auditctl_exec_t : file { … entrypoint ...