Debian Codegraph @

selinux/cockpit_session_selinux.8cockpit

raw
1 .TH "cockpit_session_selinux" "8" "21-04-16" "cockpit_session" "SELinux Policy cockpit_session"
2 .SH "NAME"
3 cockpit_session_selinux \- Security Enhanced Linux Policy for the cockpit_session processes
4 .SH "DESCRIPTION"
5
6 Security-Enhanced Linux secures the cockpit_session processes via flexible mandatory access control.
7
8 The cockpit_session processes execute with the cockpit_session_t SELinux type. You can check if you have these processes running by executing the \fBps\fP command with the \fB\-Z\fP qualifier.
9
10 For example:
11
12 .B ps -eZ | grep cockpit_session_t
13
14
15 .SH "ENTRYPOINTS"
16
17 The cockpit_session_t SELinux type can be entered via the \fBcockpit_session_exec_t\fP file type.
18
19 The default entrypoint paths for the cockpit_session_t domain is \fB/usr/libexec/cockpit-session\fP.
20
21 .SH PROCESS TYPES
22 SELinux defines process types (domains) for each process running on the system
23 .PP
24 You can see the context of a process using the \fB\-Z\fP option to \fBps\bP
25 .PP
26 Policy governs the access confined processes have to files.
27 SELinux cockpit_session policy is very flexible allowing users to setup their cockpit_session processes in as secure a method as possible.
28 .PP
29 The following process types are defined for cockpit_session:
30
31 .EX
32 .B cockpit_session_t
33 .EE
34 .PP
35 Note:
36 .B semanage permissive -a cockpit_session_t
37 can be used to make the process type cockpit_session_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated.
38
39 .SH BOOLEANS
40 SELinux policy is customizable based on least access required. cockpit_session policy is extremely flexible and has several booleans that allow you to manipulate the policy and run cockpit_session with the tightest access possible.
41
42
43 .PP
44 If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default.
45
46 .EX
47 .B setsebool -P fips_mode 1
48
49 .EE
50
51 .PP
52 If you want to allow confined applications to run with kerberos, you must turn on the kerberos_enabled boolean. Enabled by default.
53
54 .EX
55 .B setsebool -P kerberos_enabled 1
56
57 .EE
58
59 .PP
60 If you want to allow system to run with NIS, you must turn on the nis_enabled boolean. Disabled by default.
61
62 .EX
63 .B setsebool -P nis_enabled 1
64
65 .EE
66
67 .PP
68 If you want to enable polyinstantiated directory support, you must turn on the polyinstantiation_enabled boolean. Disabled by default.
69
70 .EX
71 .B setsebool -P polyinstantiation_enabled 1
72
73 .EE
74
75 .SH "MANAGED FILES"
76
77 The SELinux process type cockpit_session_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. Note the processes UID still need to have DAC permissions.
78
79 .br
80 .B auth_cache_t
81
82 /var/cache/coolkey(/.*)?
83 .br
84
85 .br
86 .B auth_home_t
87
88 /root/\.yubico(/.*)?
89 .br
90 /root/\.config/Yubico(/.*)?
91 .br
92 /root/\.google_authenticator
93 .br
94 /root/\.google_authenticator~
95 .br
96 /home/[^/]+/\.yubico(/.*)?
97 .br
98 /home/[^/]+/\.config/Yubico(/.*)?
99 .br
100 /home/[^/]+/\.google_authenticator
101 .br
102 /home/[^/]+/\.google_authenticator~
103 .br
104
105 .br
106 .B faillog_t
107
108 /var/log/btmp.*
109 .br
110 /var/log/faillog.*
111 .br
112 /var/log/tallylog.*
113 .br
114 /var/run/faillock(/.*)?
115 .br
116
117 .br
118 .B initrc_var_run_t
119
120 /var/run/utmp
121 .br
122 /var/run/random-seed
123 .br
124 /var/run/runlevel\.dir
125 .br
126 /var/run/setmixer_flag
127 .br
128
129 .br
130 .B lastlog_t
131
132 /var/log/lastlog.*
133 .br
134
135 .br
136 .B pam_var_run_t
137
138 /var/(db|adm)/sudo(/.*)?
139 .br
140 /var/lib/sudo(/.*)?
141 .br
142 /var/run/sudo(/.*)?
143 .br
144 /var/run/pam_ssh(/.*)?
145 .br
146 /var/run/sepermit(/.*)?
147 .br
148 /var/run/pam_mount(/.*)?
149 .br
150 /var/run/pam_timestamp(/.*)?
151 .br
152
153 .br
154 .B security_t
155
156 /selinux
157 .br
158
159 .br
160 .B shadow_t
161
162 /etc/shadow.*
163 .br
164 /etc/gshadow.*
165 .br
166 /etc/nshadow.*
167 .br
168 /var/db/shadow.*
169 .br
170 /etc/security/opasswd
171 .br
172 /etc/security/opasswd\.old
173 .br
174
175 .br
176 .B var_auth_t
177
178 /var/ace(/.*)?
179 .br
180 /var/rsa(/.*)?
181 .br
182 /var/lib/abl(/.*)?
183 .br
184 /var/lib/rsa(/.*)?
185 .br
186 /var/lib/pam_ssh(/.*)?
187 .br
188 /var/lib/pam_shield(/.*)?
189 .br
190 /var/opt/quest/vas/vasd(/.*)?
191 .br
192 /var/lib/google-authenticator(/.*)?
193 .br
194
195 .br
196 .B wtmp_t
197
198 /var/log/wtmp.*
199 .br
200
201 .SH FILE CONTEXTS
202 SELinux requires files to have an extended attribute to define the file type.
203 .PP
204 You can see the context of a file using the \fB\-Z\fP option to \fBls\bP
205 .PP
206 Policy governs the access confined processes have to these files.
207 SELinux cockpit_session policy is very flexible allowing users to setup their cockpit_session processes in as secure a method as possible.
208 .PP
209
210 .I The following file types are defined for cockpit_session:
211
212
213 .EX
214 .PP
215 .B cockpit_session_exec_t
216 .EE
217
218 - Set files with the cockpit_session_exec_t type, if you want to transition an executable to the cockpit_session_t domain.
219
220 .br
221 .TP 5
222 Paths:
223 /usr/libexec/cockpit-session
224
225 .PP
226 Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the
227 .B semanage fcontext
228 command. This will modify the SELinux labeling database. You will need to use
229 .B restorecon
230 to apply the labels.
231
232 .SH "COMMANDS"
233 .B semanage fcontext
234 can also be used to manipulate default file context mappings.
235 .PP
236 .B semanage permissive
237 can also be used to manipulate whether or not a process type is permissive.
238 .PP
239 .B semanage module
240 can also be used to enable/disable/install/remove policy modules.
241
242 .B semanage boolean
243 can also be used to manipulate the booleans
244
245 .PP
246 .B system-config-selinux
247 is a GUI tool available to customize SELinux policy settings.
248
249 .SH AUTHOR
250 This manual page was auto-generated using
251 .B "sepolicy manpage".
252
253 .SH "SEE ALSO"
254 selinux(8), cockpit_session(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)