Debian Codegraph @

libselinux/man/man5/default_type.5

raw
1 .TH "default_type" "5" "28-Nov-2011" "Security Enhanced Linux" "SELinux configuration"
2 .SH "NAME"
3 default_type \- The SELinux default type configuration file
4 .
5 .SH "DESCRIPTION"
6 The \fIdefault_type\fR file contains entries that allow SELinux-aware applications such as \fBnewrole\fR(1) to select a default type for a role if one is not supplied.
7 .sp
8 \fBselinux_default_type_path\fR(3) will return the active policy path to this file. The default, default type file is:
9 .RS
10 .I /etc/selinux/{SELINUXTYPE}/contexts/default_type
11 .RE
12 .sp
13 Where \fI{SELINUXTYPE}\fR is the entry from the selinux configuration file \fIconfig\fR (see \fBselinux_config\fR(5)).
14 .sp
15 \fBget_default_type\fR(3) reads this file to determine a type for the active policy.
16 .
17 .SH "FILE FORMAT"
18 Each line within the \fIdefault_type\fR file is formatted with \fIrole\fB:\fItype\fR entries where:
19 .RS
20 .I role
21 .RS
22 The SELinux role.
23 .RE
24 .I type
25 .RS
26 The domain type that is returned for this role.
27 .RE
28 .
29 .SH "EXAMPLE"
30 # ./contexts/default_type
31 .br
32 auditadm_r:auditadm_t
33 .br
34 user_r:user_t
35 .
36 .SH "SEE ALSO"
37 .ad l
38 .nh
39 .BR selinux "(8), " get_default_type "(3), " newrole "(1), " selinux_default_type_path "(3), " selinux_config "(5) "