Debian Codegraph @

libselinux/man/man5/customizable_types.5

raw
1 .TH "customizable_types" "5" "28-Nov-2011" "Security Enhanced Linux" "SELinux configuration"
2 .SH "NAME"
3 customizable_types \- The SELinux customizable types configuration file
4 .
5 .SH "DESCRIPTION"
6 The \fIcustomizable_types\fR file contains a list of types that can be customised in some way by SELinux-aware applications.
7 .sp
8 Generally this is a file context type that is usually set on files that need to be shared among certain domains and where the administrator wants to manually manage the type.
9 .sp
10 The use of customizable types is deprecated as the preferred approach is to use
11 .BR semanage (8)
12 .BR fcontext (8)
13 .BR ... (8).
14 However, SELinux-aware applications such as
15 .BR setfiles (8)
16 will use this information to obtain a list of types relating to files that should not be relabeled.
17 .sp
18 .BR selinux_customizable_types_path (3)
19 will return the active policy path to this file. The default customizable types file is:
20 .RS
21 .I /etc/selinux/{SELINUXTYPE}/contexts/customizable_types
22 .RE
23 .sp
24 Where \fI{SELINUXTYPE}\fR is the entry from the selinux configuration file \fIconfig\fR (see \fBselinux_config\fR(5)).
25 .sp
26 .BR is_context_customizable (3)
27 reads this file to determine if a context is customisable or not for the active policy.
28 .
29 .SH "FILE FORMAT"
30 Each line in the file consists of the following:
31 .RS
32 .I type
33 .RE
34 .sp
35 Where:
36 .RS
37 .I type
38 .RS
39 The type defined in the policy that can be customised.
40 .RE
41 .RE
42 .
43 .SH "EXAMPLE"
44 # ./contexts/customizable_types
45 .br
46 mount_loopback_t
47 .br
48 public_content_rw_t
49 .br
50 public_content_t
51 .br
52 swapfile_t
53 .br
54 sysadm_untrusted_content_t
55 .
56 .SH "SEE ALSO"
57 .ad l
58 .nh
59 .BR selinux "(8), " selinux_customizable_types_path "(3), " is_context_customizable "(3), " semanage "(8), " setfiles "(8), " selinux_config "(5) "