sediff - SELinux policy difference tool
sediff [OPTIONS] [EXPRESSION] POLICY1 POLICY2
Determine the differences between two SELinux policies.
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 not provided,
sediff will print an error message and exit.
The user may specify an expression listing the policy elements to
differentiate. If not provided, all supported policy elements are
examined.
- --common
- Find differences in common permission sets.
- -c, --class
- Find differences in object classes.
- -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.
- --sensitivity
- Find differences in sensitivity definitions.
- --category
- Find differences in category definitions.
- --level
- Find differences in MLS level definitions.
- --initialsid
- Find differences in initial SID statements.
- --fs_use
- Find differences in fs_use_* statements.
- --genfscon
- Find differences in genfscon statements.
- --netifcon
- Find differences in netifcon statements.
- --nodecon
- Find differences in nodecon statements.
- --portcon
- Find differences in portcon statements.
- --default
- Find differences in default_* statements.
- --property
- Find differences in policy properties. Only applicable for binary policies
(policy version, MLS enabled/disabled, unknown permissions setting).
- --polcap
- Find differences in policy capabilities.
- --typebounds
- Find differences in typebound statements.
sediff categorizes differences in policy elements into one
of three forms.
- added
- The element exists only in the modified policy.
- removed
- The element exists only in the original policy.
- modified
- 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.
Chris PeBenito <pebenito@ieee.org>
Please report bugs via the SETools bug tracker,
https://github.com/SELinuxProject/setools/issues