File: default_type.5

package info (click to toggle)
libselinux 3.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,380 kB
  • sloc: ansic: 17,619; makefile: 416; sh: 48; python: 21
file content (39 lines) | stat: -rw-r--r-- 1,193 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.TH "default_type" "5" "28-Nov-2011" "Security Enhanced Linux" "SELinux configuration"
.SH "NAME"
default_type \- The SELinux default type configuration file
.
.SH "DESCRIPTION"
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.
.sp
\fBselinux_default_type_path\fR(3) will return the active policy path to this file. The default, default type file is:
.RS
.I /etc/selinux/{SELINUXTYPE}/contexts/default_type
.RE
.sp
Where \fI{SELINUXTYPE}\fR is the entry from the selinux configuration file \fIconfig\fR (see \fBselinux_config\fR(5)).
.sp
\fBget_default_type\fR(3) reads this file to determine a type for the active policy.
.
.SH "FILE FORMAT"
Each line within the \fIdefault_type\fR file is formatted with \fIrole\fB:\fItype\fR entries where:
.RS
.I role
.RS
The SELinux role.
.RE
.I type
.RS
The domain type that is returned for this role.
.RE
.
.SH "EXAMPLE"
# ./contexts/default_type
.br
auditadm_r:auditadm_t
.br
user_r:user_t
.
.SH "SEE ALSO"
.ad l
.nh
.BR selinux "(8), " get_default_type "(3), " newrole "(1), " selinux_default_type_path "(3), " selinux_config "(5) "