sesearch(1) | SETools: SELinux Policy Analysis Tools | sesearch(1) |
sesearch - SELinux policy query tool
sesearch [OPTIONS] [OPTIONS] [EXPRESSION] [POLICY]
sesearch allows the user to search the rules in a SELinux policy.
A single file containing a binary policy. This file is usually named by version on Linux systems, for example, policy.30. This file is usually named sepolicy on Android systems. If no policy file is provided, sesearch will search for the policy running on the current system. If no policy can be found, sesearch will print an error message and exit.
The user may specify an expression containing values for a given field(s) in a rule. If no expression is specified or if none of the specified fields apply to a given rule type, all rules of that type are considered to match the expression.
The following additional options modify how the search is performed.
List allow (and allowxperm) rules for accessing files labeled container_file_t from domains with attribute container_domain # sesearch -A -s container_domain -t container_file_t -c file List allow and dontaudit rules for accessing chr_files labeled container_file_t, that are controlled by boolean container_use_devices # sesearch -A --dontaudit -t container_file_t -c chr_file -b container_use_devices List dontaudit rules assigned via application_domain_type attribute (rules concerning specific types with that attribute are excluded) # sesearch --dontaudit -s application_domain_type -ds
Chris PeBenito <pebenito@ieee.org>
Please report bugs via the SETools bug tracker, https://github.com/SELinuxProject/setools/issues
apol(1), sediff(1), sedta(1), seinfo(1), seinfoflow(1)
2016-02-20 | SELinux Project |