sechecker
SELinux policy checking tool
- Provided by: setools (Version: 3.3.8+20151215-2)
- Report a bug
SELinux policy checking tool
sechecker [OPTIONS] -p profile [POLICY ...]
sechecker [OPTIONS] -m module [POLICY ...]
sechecker [OPTIONS] -p profile -m module [POLICY ...]
sechecker allows the user to perform predefined modular checks on a SELinux policy. Profiles exist to group modules together and allow modification of module settings (see below).
sechecker supports loading a SELinux policy in one of four formats.
If no policy file is provided, sechecker will search for the system default policy: checking first for a source policy, next for a binary policy matching the running kernel's preferred version, and finally for the highest version that can be found. In the latter case, the policy will be downgraded to match the running system. If no policy can be found, sechecker will print an error message and exit.
Only one of the following may be provided to specify the length of the report for all modules. If provided, this option overrides both profile and module default output settings.
Profiles are used to group modules together, to specify the output format for each module in the report, and to provide the ability to override the modules' default options. Each profile is a well-formed XML document, as specified by the DTD installed with sechecker. An example profile follows:
<sechecker version="1.1">
<profile>
<module name="find_domains">
<output value="quiet"/>
<option name="domain_attribute">
<item value="domain"/>
<item value="user_domain"/>
...
</option>
</module>
...
</profile>
</sechecker>
The example profile specifies the output property for the find_domains module. The example profile also overrides the default value for the "domain_attribute" option in the find_domains module.
The valid output values for each module are specified below:
Several modules provide one or more options that can be set from a profile. Each option has one or more items. To check what options are available for a module use --help=MODULE, where MODULE is the name of the module as printed by --list.
This manual page was written by Jeremy A. Mowery <jmowery@tresys.com>.
Copyright(C) 2005-2008 Tresys Technology, LLC
Please report bugs via an email to setools-bugs@tresys.com.