1chfn_selinux(8) SELinux Policy chfn chfn_selinux(8)
2
3
4
6 chfn_selinux - Security Enhanced Linux Policy for the chfn processes
7
9 Security-Enhanced Linux secures the chfn processes via flexible manda‐
10 tory access control.
11
12 The chfn processes execute with the chfn_t SELinux type. You can check
13 if you have these processes running by executing the ps command with
14 the -Z qualifier.
15
16 For example:
17
18 ps -eZ | grep chfn_t
19
20
21
23 The chfn_t SELinux type can be entered via the chfn_exec_t file type.
24
25 The default entrypoint paths for the chfn_t domain are the following:
26
27 /usr/bin/chsh, /usr/bin/chfn
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 chfn policy is very flexible allowing users to setup their chfn pro‐
37 cesses in as secure a method as possible.
38
39 The following process types are defined for chfn:
40
41 chfn_t
42
43 Note: semanage permissive -a chfn_t can be used to make the process
44 type chfn_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. chfn
51 policy is extremely flexible and has several booleans that allow you to
52 manipulate the policy and run chfn with the tightest access possible.
53
54
55
56 If you want to allow all domains to use other domains file descriptors,
57 you must turn on the allow_domain_fd_use boolean. Enabled by default.
58
59 setsebool -P allow_domain_fd_use 1
60
61
62
63 If you want to allow confined applications to run with kerberos, you
64 must turn on the allow_kerberos boolean. Enabled by default.
65
66 setsebool -P allow_kerberos 1
67
68
69
70 If you want to allow sysadm to debug or ptrace all processes, you must
71 turn on the allow_ptrace boolean. Disabled by default.
72
73 setsebool -P allow_ptrace 1
74
75
76
77 If you want to allow system to run with NIS, you must turn on the
78 allow_ypbind boolean. Disabled by default.
79
80 setsebool -P allow_ypbind 1
81
82
83
84 If you want to allow all domains to have the kernel load modules, you
85 must turn on the domain_kernel_load_modules boolean. Disabled by
86 default.
87
88 setsebool -P domain_kernel_load_modules 1
89
90
91
92 If you want to allow all domains to execute in fips_mode, you must turn
93 on the fips_mode boolean. Enabled by default.
94
95 setsebool -P fips_mode 1
96
97
98
99 If you want to enable reading of urandom for all domains, you must turn
100 on the global_ssp boolean. Disabled by default.
101
102 setsebool -P global_ssp 1
103
104
105
106 If you want to allow confined applications to use nscd shared memory,
107 you must turn on the nscd_use_shm boolean. Enabled by default.
108
109 setsebool -P nscd_use_shm 1
110
111
112
114 The SELinux process type chfn_t can manage files labeled with the fol‐
115 lowing file types. The paths listed are the default paths for these
116 file types. Note the processes UID still need to have DAC permissions.
117
118 etc_t
119
120 /etc/.*
121 /var/db/.*.db
122 /usr/etc(/.*)?
123 /var/ftp/etc(/.*)?
124 /usr/local/etc(/.*)?
125 /var/lib/openshift/.limits.d(/.*)?
126 /var/lib/openshift/.openshift-proxy.d(/.*)?
127 /var/lib/openshift/.stickshift-proxy.d(/.*)?
128 /var/lib/stickshift/.limits.d(/.*)?
129 /var/lib/stickshift/.stickshift-proxy.d(/.*)?
130 /var/named/chroot/etc(/.*)?
131 /etc/ipsec.d/examples(/.*)?
132 /var/spool/postfix/etc(/.*)?
133 /etc
134 /etc/cups/client.conf
135
136 faillog_t
137
138 /var/log/btmp.*
139 /var/log/faillog.*
140 /var/log/tallylog.*
141 /var/run/faillock(/.*)?
142
143 initrc_tmp_t
144
145
146 krb5_host_rcache_t
147
148 /var/cache/krb5rcache(/.*)?
149 /var/tmp/host_0
150 /var/tmp/HTTP_23
151
152 lastlog_t
153
154 /var/log/lastlog.*
155
156 mnt_t
157
158 /mnt(/[^/]*)
159 /mnt(/[^/]*)?
160 /rhev(/[^/]*)?
161 /media(/[^/]*)
162 /media(/[^/]*)?
163 /etc/rhgb(/.*)?
164 /media/.hal-.*
165 /net
166 /afs
167 /rhev
168 /misc
169
170 pcscd_var_run_t
171
172 /var/run/pcscd.events(/.*)?
173 /var/run/pcscd.pid
174 /var/run/pcscd.pub
175 /var/run/pcscd.comm
176
177 security_t
178
179
180 tmp_t
181
182 /tmp
183 /usr/tmp
184 /var/tmp
185 /tmp-inst
186 /var/tmp-inst
187 /var/tmp/vi.recover
188
189 user_tmp_t
190
191 /tmp/gconfd-.*
192 /tmp/gconfd-staff
193
194
196 SELinux requires files to have an extended attribute to define the file
197 type.
198
199 You can see the context of a file using the -Z option to ls
200
201 Policy governs the access confined processes have to these files.
202 SELinux chfn policy is very flexible allowing users to setup their chfn
203 processes in as secure a method as possible.
204
205 The following file types are defined for chfn:
206
207
208
209 chfn_exec_t
210
211 - Set files with the chfn_exec_t type, if you want to transition an
212 executable to the chfn_t domain.
213
214
215 Paths:
216 /usr/bin/chsh, /usr/bin/chfn
217
218
219 Note: File context can be temporarily modified with the chcon command.
220 If you want to permanently change the file context you need to use the
221 semanage fcontext command. This will modify the SELinux labeling data‐
222 base. You will need to use restorecon to apply the labels.
223
224
226 semanage fcontext can also be used to manipulate default file context
227 mappings.
228
229 semanage permissive can also be used to manipulate whether or not a
230 process type is permissive.
231
232 semanage module can also be used to enable/disable/install/remove pol‐
233 icy modules.
234
235 semanage boolean can also be used to manipulate the booleans
236
237
238 system-config-selinux is a GUI tool available to customize SELinux pol‐
239 icy settings.
240
241
243 This manual page was auto-generated using sepolicy manpage .
244
245
247 selinux(8), chfn(8), semanage(8), restorecon(8), chcon(1) , setse‐
248 bool(8)
249
250
251
252chfn 15-06-03 chfn_selinux(8)