Sesearch command details, sesearch details

Source: Internet
Author: User

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-

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.