sediff (1) - Linux Man Pages
sediff: SELinux policy difference tool
NAMEsediff - SELinux policy difference tool
SYNOPSISsediff [OPTIONS] [EXPRESSION] ORIGINAL_POLICY ; MODIFIED_POLICY
sediff supports loading SELinux policies in one of four formats.
- A single text file containing policy source for versions 12 through 21. This file is usually named policy.conf.
- A single file containing a monolithic kernel binary policy for versions 15 through 21. This file is usually named by version - for example, policy.20.
- A list of policy packages each containing a loadable policy module. The first module listed must be a base module.
- policy list
- A single text file containing all the information needed to load a policy, usually exported by SETools graphical utilities.
The user may specify an expression listing the policy elements to differentiate. If not provided, all supported policy elements sans neverallows are examined.
- -c, --class
- Find differences in permissions assigned to object classes and common permission sets.
- Find differences in categories authorized for MLS levels.
- Find differences in category definitions.
- -t, --type
- Find differences in attributes associated with types.
- -a, --attribute
- Find differences in types assigned to attributes.
- -r, --role
- Find differences in types authorized for roles.
- -u, --user
- Find differences in roles authorized for users.
- -b, --bool
- Find differences in the default values of booleans.
- -A, --allow
- Find differences in allow rules.
- Find differences in auditallow rules.
- Find differences in dontaudit rules.
- Find differences in neverallow rules.
- Find differences in type_transition rules.
- Find differences in type_member rules.
- Find differences in type_change rules.
- Find differences in role_transition rules. This includes differences in the default role.
- Find differences in role allow rules.
- Find differences in range_transition rules. This includes differences in the target MLS range.
- -q, --quiet
- If there are no differences for elements of a given kind, suppress status output for that kind of element.
- Print difference statistics only.
- -h, --help
- Print help information and exit.
- -V, --version
- Print version information and exit.
sediff categorizes differences in policy elements into one of three forms.
- The element exists only in the modified policy.
- The element exists only in the original policy.
- The element exists in both policies but its semantic meaning has changed. For example, a class is modified if one or more permissions are added or removed.
For all rules with types as their source or target, two additional forms of difference are recognized. This helps distinguish differences due to new types from differences in rules for existing types.
- added, new type
- The rule exists only in the modified policy; furthermore, one or more of the types in the rule do not exist in the original policy.
- removed, missing type
- The rule exists only in the original policy; furthermore, one or more of the types in the rule do not exist in the modified policy.
NOTEMost shells interpret the semicolon as a metacharacter, thus requiring a backslash like so: sediff original.policy \; modified.policy
AUTHORThis manual page was written by Jeremy A. Mowery <jmowery [at] tresys.com>.
COPYRIGHTCopyright(C) 2004-2007 Tresys Technology, LLC
BUGSPlease report bugs via an email to setools-bugs [at] tresys.com.