DOKK / manpages / debian 12 / setools / sediff.1.en
sediff(1) SETools: SELinux Policy Analysis Tools sediff(1)

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.

Find differences in common permission sets.
Find differences in object classes.
Find differences in attributes associated with types.
Find differences in types assigned to attributes.
Find differences in types authorized for roles.
Find differences in roles authorized for users.
Find differences in the default values of booleans.
Find differences in sensitivity definitions.
Find differences in category definitions.
Find differences in MLS level definitions.

Find differences in allow and allowxperm rules.
Find differences in allow rules.
Find differences in auditallow rules.
Find differences in dontaudit rules.
Find differences in neverallow rules.
Find differences in allowxperm rules.
Find differences in auditallowxperm rules.
Find differences in dontauditxperm rules.
Find differences in neverallowxperm rules.
Find differences in type_transition rules.
Find differences in type_member rules.
Find differences in type_change rules.

Find differences in role allow rules.
Find differences in role_transition rules.

Find differences in range_transition rules.

Find differences in constrain rules.
Find differences in mlsconstrain rules.
Find differences in validatetrans rules.
Find differences in mlsvalidatetrans rules.

Find differences in initial SID statements.
Find differences in fs_use_* statements.
Find differences in genfscon statements.
Find differences in netifcon statements.
Find differences in nodecon statements.
Find differences in portcon statements.

Find differences in default_* statements.
Find differences in policy properties. Only applicable for binary policies (policy version, MLS enabled/disabled, unknown permissions setting).
Find differences in policy capabilities.
Find differences in typebound statements.

Print help information and exit.
Print difference statistics only.
Print version information and exit.
Print additional informational messages.
Enable debugging output.

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.

Chris PeBenito <pebenito@ieee.org>

Please report bugs via the SETools bug tracker, https://github.com/SELinuxProject/setools/issues

apol(1), sedta(1), seinfo(1), seinfoflow(1), sesearch(1)

2016-04-19 SELinux Project