1cockpit_session_selinux(8S)ELinux Policy cockpit_sessiocnockpit_session_selinux(8)
2
3
4

NAME

6       cockpit_session_selinux  - Security Enhanced Linux Policy for the cock‐
7       pit_session processes
8

DESCRIPTION

10       Security-Enhanced Linux secures the cockpit_session processes via flex‐
11       ible mandatory access control.
12
13       The   cockpit_session  processes  execute  with  the  cockpit_session_t
14       SELinux type. You can check if you have these processes running by exe‐
15       cuting the ps command with the -Z qualifier.
16
17       For example:
18
19       ps -eZ | grep cockpit_session_t
20
21
22

ENTRYPOINTS

24       The  cockpit_session_t SELinux type can be entered via the cockpit_ses‐
25       sion_exec_t file type.
26
27       The default entrypoint paths for the cockpit_session_t domain  are  the
28       following:
29
30       /usr/libexec/cockpit-ssh, /usr/libexec/cockpit-session
31

PROCESS TYPES

33       SELinux defines process types (domains) for each process running on the
34       system
35
36       You can see the context of a process using the -Z option to ps
37
38       Policy governs the access confined processes have  to  files.   SELinux
39       cockpit_session  policy  is very flexible allowing users to setup their
40       cockpit_session processes in as secure a method as possible.
41
42       The following process types are defined for cockpit_session:
43
44       cockpit_session_t
45
46       Note: semanage permissive -a cockpit_session_t can be used to make  the
47       process type cockpit_session_t permissive. SELinux does not deny access
48       to permissive process types, but the AVC (SELinux denials) messages are
49       still generated.
50
51

BOOLEANS

53       SELinux  policy  is customizable based on least access required.  cock‐
54       pit_session policy is extremely flexible and has several booleans  that
55       allow  you  to  manipulate  the policy and run cockpit_session with the
56       tightest access possible.
57
58
59
60       If you want to allow users to resolve user passwd entries directly from
61       ldap  rather  then  using  a  sssd server, you must turn on the authlo‐
62       gin_nsswitch_use_ldap boolean. Disabled by default.
63
64       setsebool -P authlogin_nsswitch_use_ldap 1
65
66
67
68       If you want to allow all domains to execute in fips_mode, you must turn
69       on the fips_mode boolean. Enabled by default.
70
71       setsebool -P fips_mode 1
72
73
74
75       If  you  want  to allow confined applications to run with kerberos, you
76       must turn on the kerberos_enabled boolean. Enabled by default.
77
78       setsebool -P kerberos_enabled 1
79
80
81
82       If you want to allow system to run with  NIS,  you  must  turn  on  the
83       nis_enabled boolean. Disabled by default.
84
85       setsebool -P nis_enabled 1
86
87
88
89       If  you  want to allow confined applications to use nscd shared memory,
90       you must turn on the nscd_use_shm boolean. Disabled by default.
91
92       setsebool -P nscd_use_shm 1
93
94
95
96       If you want to enable polyinstantiated directory support, you must turn
97       on the polyinstantiation_enabled boolean. Disabled by default.
98
99       setsebool -P polyinstantiation_enabled 1
100
101
102

MANAGED FILES

104       The  SELinux  process  type  cockpit_session_t can manage files labeled
105       with the following file types.  The paths listed are the default  paths
106       for  these  file  types.  Note the processes UID still need to have DAC
107       permissions.
108
109       auth_cache_t
110
111            /var/cache/coolkey(/.*)?
112
113       auth_home_t
114
115            /root/.yubico(/.*)?
116            /root/.google_authenticator
117            /root/.google_authenticator~
118            /home/[^/]+/.yubico(/.*)?
119            /home/[^/]+/.google_authenticator
120            /home/[^/]+/.google_authenticator~
121
122       cgroup_t
123
124            /sys/fs/cgroup
125
126       cockpit_tmp_t
127
128
129       cockpit_tmpfs_t
130
131
132       faillog_t
133
134            /var/log/btmp.*
135            /var/log/faillog.*
136            /var/log/tallylog.*
137            /var/run/faillock(/.*)?
138
139       initrc_var_run_t
140
141            /var/run/utmp
142            /var/run/random-seed
143            /var/run/runlevel.dir
144            /var/run/setmixer_flag
145
146       kdbusfs_t
147
148
149       krb5_host_rcache_t
150
151            /var/cache/krb5rcache(/.*)?
152            /var/tmp/nfs_0
153            /var/tmp/DNS_25
154            /var/tmp/host_0
155            /var/tmp/imap_0
156            /var/tmp/HTTP_23
157            /var/tmp/HTTP_48
158            /var/tmp/ldap_55
159            /var/tmp/ldap_487
160            /var/tmp/ldapmap1_0
161
162       lastlog_t
163
164            /var/log/lastlog.*
165
166       pam_var_run_t
167
168            /var/(db|adm)/sudo(/.*)?
169            /var/lib/sudo(/.*)?
170            /var/run/sudo(/.*)?
171            /var/run/motd.d(/.*)?
172            /var/run/sepermit(/.*)?
173            /var/run/pam_mount(/.*)?
174            /var/run/motd
175
176       passwd_file_t
177
178            /etc/group[-+]?
179            /etc/passwd[-+]?
180            /etc/passwd.adjunct.*
181            /etc/ptmptmp
182            /etc/.pwd.lock
183            /etc/group.lock
184            /etc/passwd.OLD
185            /etc/passwd.lock
186
187       security_t
188
189            /selinux
190
191       shadow_t
192
193            /etc/shadow.*
194            /etc/gshadow.*
195            /etc/nshadow.*
196            /var/db/shadow.*
197            /etc/security/opasswd
198            /etc/security/opasswd.old
199
200       user_tmp_t
201
202            /dev/shm/mono.*
203            /var/run/user(/.*)?
204            /tmp/.ICE-unix(/.*)?
205            /tmp/.X11-unix(/.*)?
206            /dev/shm/pulse-shm.*
207            /tmp/.X0-lock
208            /tmp/hsperfdata_root
209            /var/tmp/hsperfdata_root
210            /home/[^/]+/tmp
211            /home/[^/]+/.tmp
212            /tmp/gconfd-[^/]+
213
214       var_auth_t
215
216            /var/ace(/.*)?
217            /var/rsa(/.*)?
218            /var/lib/abl(/.*)?
219            /var/lib/rsa(/.*)?
220            /var/lib/pam_ssh(/.*)?
221            /var/run/pam_ssh(/.*)?
222            /var/lib/pam_shield(/.*)?
223            /var/opt/quest/vas/vasd(/.*)?
224            /var/lib/google-authenticator(/.*)?
225
226       wtmp_t
227
228            /var/log/wtmp.*
229
230

FILE CONTEXTS

232       SELinux requires files to have an extended attribute to define the file
233       type.
234
235       You can see the context of a file using the -Z option to ls
236
237       Policy  governs  the  access  confined  processes  have to these files.
238       SELinux cockpit_session policy is very flexible allowing users to setup
239       their cockpit_session processes in as secure a method as possible.
240
241       The following file types are defined for cockpit_session:
242
243
244
245       cockpit_session_exec_t
246
247       -  Set files with the cockpit_session_exec_t type, if you want to tran‐
248       sition an executable to the cockpit_session_t domain.
249
250
251       Paths:
252            /usr/libexec/cockpit-ssh, /usr/libexec/cockpit-session
253
254
255       Note: File context can be temporarily modified with the chcon  command.
256       If  you want to permanently change the file context you need to use the
257       semanage fcontext command.  This will modify the SELinux labeling data‐
258       base.  You will need to use restorecon to apply the labels.
259
260

COMMANDS

262       semanage  fcontext  can also be used to manipulate default file context
263       mappings.
264
265       semanage permissive can also be used to manipulate  whether  or  not  a
266       process type is permissive.
267
268       semanage  module can also be used to enable/disable/install/remove pol‐
269       icy modules.
270
271       semanage boolean can also be used to manipulate the booleans
272
273
274       system-config-selinux is a GUI tool available to customize SELinux pol‐
275       icy settings.
276
277

AUTHOR

279       This manual page was auto-generated using sepolicy manpage .
280
281

SEE ALSO

283       selinux(8),  cockpit_session(8),  semanage(8), restorecon(8), chcon(1),
284       sepolicy(8), setsebool(8)
285
286
287
288cockpit_session                    19-05-30         cockpit_session_selinux(8)
Impressum