Performing single-step analysis
Until now, we've covered a few methods of analyzing SELinux policies through command-line utilities such as seinfo
and sesearch
. These utilities can assist users in performing single-step analyses: they either provide immediate information about an SELinux object (which is mainly what seinfo
is about) or are capable of querying direct SELinux rules (which is the scope of sesearch
).
Not all capabilities of the seinfo
and sesearch
utilities have been discussed yet though, so let's see what other tricks these commands have up their sleeves.
Using different SELinux policy files
Many SELinux analysis tools, including seinfo
and sesearch
, can access both the currently loaded SELinux policy and a specified SELinux policy file. The latter allows developers to query SELinux policies of systems they do not have direct access to, for which direct access is cumbersome (such as mobile devices), or that have been used in previous situations (backups...