Sesearch command details, sesearch details
| Guide |
You can use the seinfo command to query the number of relevant rules provided by SELinux policies. If you find the relevant types or boolean values, use the sesearch command to query the detailed rules. Commands related to SELinux policy and rule management: seinfo, sesearch, getsebool, setsebool, and semanage. |
Syntax
Sesearch [-a] [-s subject type] [-t target type] [-B Boolean value]
Option
-A: list all related information for this type or Boolean value-t: Followed by a type, such as-t httpd_t-b: Followed by a Boolean rule, such as-B httpd_enable_ftp_server
Instance
Find the information about httpd_sys_content_t:
Sesearch-a-t httpd_sys_content_t
Find all information related to httpd_t and httpd:
Sesearch-s httpd_t-t httpd _ *-
Check the number of rules set by the Boolean value httpd_enable_homedirs.
Sesearch-B httpd_enable_homedirs-