Home >System Tutorial >LINUX >Detailed explanation of command-sesearch

Detailed explanation of command-sesearch

PHPz
PHPzforward
2024-03-21 08:10:30667browse

Detailed explanation of command-sesearch

grammar
sesearch [-a] [-s body type] [-t target type] [-b boolean]
Options
-a: List all related information of this type or Boolean value
-t: followed by the type, for example -t httpd_t
-b: followed by a Boolean rule, for example -b httpd_enable_ftp_server
Example

Find out the relevant information about the target file resource type httpd_sys_content_t:

sesearch -a -t httpd_sys_content_t

Find out all the information related to the main process being httpd_t and the target file type being httpd:

sesearch -s httpd_t -t httpd_* -a

View how many rules the Boolean value httpd_enable_homedirs has set

sesearch -b httpd_enable_homedirs -a

The above is the detailed content of Detailed explanation of command-sesearch. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:linuxprobe.com. If there is any infringement, please contact admin@php.cn delete