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.
Find rules with NAME as their default type/role/level.
-c NAME, --class NAME
Find rules with NAME as their object class.
-p P1[,P2,...] --perm P1[,P2...]
Find rules with at least one of the specified permissions. Multiple
permissions may be specified as a comma-separated list.
-b BOOL[,B2,...], --bool BOOL[,B2,...]
Find conditional rules with the named Boolean in their conditional
expression. Multiple Booleans may be specified as a comma-separated list.
This option will include rules in both the true and false lists of the
conditional.