1l2tpd_selinux(8) SELinux Policy l2tpd l2tpd_selinux(8)
2
3
4
6 l2tpd_selinux - Security Enhanced Linux Policy for the l2tpd processes
7
9 Security-Enhanced Linux secures the l2tpd processes via flexible manda‐
10 tory access control.
11
12 The l2tpd processes execute with the l2tpd_t SELinux type. You can
13 check if you have these processes running by executing the ps command
14 with the -Z qualifier.
15
16 For example:
17
18 ps -eZ | grep l2tpd_t
19
20
21
23 The l2tpd_t SELinux type can be entered via the l2tpd_exec_t file type.
24
25 The default entrypoint paths for the l2tpd_t domain are the following:
26
27 /usr/sbin/.*l2tpd, /usr/libexec/nm-l2tp-service
28
30 SELinux defines process types (domains) for each process running on the
31 system
32
33 You can see the context of a process using the -Z option to ps
34
35 Policy governs the access confined processes have to files. SELinux
36 l2tpd policy is very flexible allowing users to setup their l2tpd pro‐
37 cesses in as secure a method as possible.
38
39 The following process types are defined for l2tpd:
40
41 l2tpd_t
42
43 Note: semanage permissive -a l2tpd_t can be used to make the process
44 type l2tpd_t permissive. SELinux does not deny access to permissive
45 process types, but the AVC (SELinux denials) messages are still gener‐
46 ated.
47
48
50 SELinux policy is customizable based on least access required. l2tpd
51 policy is extremely flexible and has several booleans that allow you to
52 manipulate the policy and run l2tpd with the tightest access possible.
53
54
55
56 If you want to allow all domains to execute in fips_mode, you must turn
57 on the fips_mode boolean. Enabled by default.
58
59 setsebool -P fips_mode 1
60
61
62
63 If you want to allow confined applications to use nscd shared memory,
64 you must turn on the nscd_use_shm boolean. Disabled by default.
65
66 setsebool -P nscd_use_shm 1
67
68
69
71 SELinux defines port types to represent TCP and UDP ports.
72
73 You can see the types associated with a port by using the following
74 command:
75
76 semanage port -l
77
78
79 Policy governs the access confined processes have to these ports.
80 SELinux l2tpd policy is very flexible allowing users to setup their
81 l2tpd processes in as secure a method as possible.
82
83 The following port types are defined for l2tpd:
84
85
86 l2tp_port_t
87
88
89
90 Default Defined Ports:
91 tcp 1701
92 udp 1701
93
95 The SELinux process type l2tpd_t can manage files labeled with the fol‐
96 lowing file types. The paths listed are the default paths for these
97 file types. Note the processes UID still need to have DAC permissions.
98
99 NetworkManager_var_run_t
100
101 /var/run/teamd(/.*)?
102 /var/run/nm-xl2tpd.conf.*
103 /var/run/nm-dhclient.*
104 /var/run/NetworkManager(/.*)?
105 /var/run/wpa_supplicant(/.*)?
106 /var/run/wicd.pid
107 /var/run/NetworkManager.pid
108 /var/run/nm-dns-dnsmasq.conf
109 /var/run/wpa_supplicant-global
110
111 cluster_conf_t
112
113 /etc/cluster(/.*)?
114
115 cluster_var_lib_t
116
117 /var/lib/pcsd(/.*)?
118 /var/lib/cluster(/.*)?
119 /var/lib/openais(/.*)?
120 /var/lib/pengine(/.*)?
121 /var/lib/corosync(/.*)?
122 /usr/lib/heartbeat(/.*)?
123 /var/lib/heartbeat(/.*)?
124 /var/lib/pacemaker(/.*)?
125
126 cluster_var_run_t
127
128 /var/run/crm(/.*)?
129 /var/run/cman_.*
130 /var/run/rsctmp(/.*)?
131 /var/run/aisexec.*
132 /var/run/heartbeat(/.*)?
133 /var/run/corosync-qnetd(/.*)?
134 /var/run/corosync-qdevice(/.*)?
135 /var/run/corosync.pid
136 /var/run/cpglockd.pid
137 /var/run/rgmanager.pid
138 /var/run/cluster/rgmanager.sk
139
140 ipsec_key_file_t
141
142 /etc/ipsec.d(/.*)?
143 /etc/racoon/certs(/.*)?
144 /etc/ipsec.secrets.*
145 /etc/strongswan/ipsec.d(/.*)?
146 /etc/strongswan/ipsec.secrets.*
147 /etc/racoon/psk.txt
148
149 l2tpd_var_run_t
150
151 /var/run/*.xl2tpd.*
152 /var/run/.*l2tpd.pid
153 /var/run/.*l2tpd(/.*)?
154 /var/run/prol2tpd.ctl
155
156 root_t
157
158 /sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
159 /
160 /initrd
161
162
164 SELinux requires files to have an extended attribute to define the file
165 type.
166
167 You can see the context of a file using the -Z option to ls
168
169 Policy governs the access confined processes have to these files.
170 SELinux l2tpd policy is very flexible allowing users to setup their
171 l2tpd processes in as secure a method as possible.
172
173 EQUIVALENCE DIRECTORIES
174
175
176 l2tpd policy stores data with multiple different file context types
177 under the /var/run/.*l2tpd directory. If you would like to store the
178 data in a different directory you can use the semanage command to cre‐
179 ate an equivalence mapping. If you wanted to store this data under the
180 /srv dirctory you would execute the following command:
181
182 semanage fcontext -a -e /var/run/.*l2tpd /srv/.*l2tpd
183 restorecon -R -v /srv/.*l2tpd
184
185 STANDARD FILE CONTEXT
186
187 SELinux defines the file context types for the l2tpd, if you wanted to
188 store files with these types in a diffent paths, you need to execute
189 the semanage command to sepecify alternate labeling and then use
190 restorecon to put the labels on disk.
191
192 semanage fcontext -a -t l2tpd_var_run_t '/srv/myl2tpd_content(/.*)?'
193 restorecon -R -v /srv/myl2tpd_content
194
195 Note: SELinux often uses regular expressions to specify labels that
196 match multiple files.
197
198 The following file types are defined for l2tpd:
199
200
201
202 l2tpd_exec_t
203
204 - Set files with the l2tpd_exec_t type, if you want to transition an
205 executable to the l2tpd_t domain.
206
207
208 Paths:
209 /usr/sbin/.*l2tpd, /usr/libexec/nm-l2tp-service
210
211
212 l2tpd_initrc_exec_t
213
214 - Set files with the l2tpd_initrc_exec_t type, if you want to transi‐
215 tion an executable to the l2tpd_initrc_t domain.
216
217
218
219 l2tpd_tmp_t
220
221 - Set files with the l2tpd_tmp_t type, if you want to store l2tpd tem‐
222 porary files in the /tmp directories.
223
224
225
226 l2tpd_var_run_t
227
228 - Set files with the l2tpd_var_run_t type, if you want to store the
229 l2tpd files under the /run or /var/run directory.
230
231
232 Paths:
233 /var/run/*.xl2tpd.*, /var/run/.*l2tpd.pid, /var/run/.*l2tpd(/.*)?,
234 /var/run/prol2tpd.ctl
235
236
237 Note: File context can be temporarily modified with the chcon command.
238 If you want to permanently change the file context you need to use the
239 semanage fcontext command. This will modify the SELinux labeling data‐
240 base. You will need to use restorecon to apply the labels.
241
242
244 semanage fcontext can also be used to manipulate default file context
245 mappings.
246
247 semanage permissive can also be used to manipulate whether or not a
248 process type is permissive.
249
250 semanage module can also be used to enable/disable/install/remove pol‐
251 icy modules.
252
253 semanage port can also be used to manipulate the port definitions
254
255 semanage boolean can also be used to manipulate the booleans
256
257
258 system-config-selinux is a GUI tool available to customize SELinux pol‐
259 icy settings.
260
261
263 This manual page was auto-generated using sepolicy manpage .
264
265
267 selinux(8), l2tpd(8), semanage(8), restorecon(8), chcon(1), sepol‐
268 icy(8), setsebool(8)
269
270
271
272l2tpd 19-05-30 l2tpd_selinux(8)