5.3. Understanding Domain Transitions: sepolicy transition
Previously, the
setrans
utility was used to examine if transition between two domain or process types is possible and printed out all intermediary types that are used to transition between these domains or processes. In Red Hat Enterprise Linux 7, setrans
is provided as part of the sepolicy
suite and the sepolicy transition
command is now used instead.
The
sepolicy transition
command queries a SELinux policy and creates a process transition report. The sepolicy transition
command requires two command-line arguments – a source domain (specified by the -s
option) and a target domain (specified by the -t
option). If only the source domain is entered, sepolicy transition
lists all possible domains that the source domain can transition to. The following output does not contain all entries. The “@” character means “execute”:
If the target domain is specified,
sepolicy transition
examines SELinux policy for all transition paths from the source domain to the target domain and lists these paths. The output below is not complete:
See the sepolicy-transition(8) manual page for further information about
sepolicy transition
.