1logadm_selinux(8)     logadm SELinux Policy documentation    logadm_selinux(8)
2
3
4

NAME

6       logadm_r - Log administrator role - Security Enhanced Linux Policy
7
8

DESCRIPTION

10       SELinux  supports  Roles  Based Access Control (RBAC), some Linux roles
11       are login roles, while other roles need to be transition into.
12
13       Note: Examples in this man page will use the staff_u SELinux user.
14
15       Non login roles are usually used for administrative tasks. For example,
16       tasks  that  require root privileges.  Roles control which types a user
17       can run processes with. Roles often  have  default  types  assigned  to
18       them.
19
20       The default type for the logadm_r role is logadm_t.
21
22       The newrole program to transition directly to this role.
23
24       newrole -r logadm_r -t logadm_t
25
26       sudo is the preferred method to do transition from one role to another.
27       You setup sudo to transition to logadm_r by adding a  similar  line  to
28       the /etc/sudoers file.
29
30       USERNAME ALL=(ALL) ROLE=logadm_r TYPE=logadm_t COMMAND
31
32       sudo will run COMMAND as staff_u:logadm_r:logadm_t:LEVEL
33
34       When  using  a a non login role, you need to setup SELinux so that your
35       SELinux user can reach logadm_r role.
36
37       Execute the following to see all of the assigned SELinux roles:
38
39       semanage user -l
40
41       You need to add logadm_r to the staff_u  user.   You  could  setup  the
42       staff_u user to be able to use the logadm_r role with a command like:
43
44       $ semanage user -m -R 'staff_r system_r logadm_r' staff_u
45
46
47

BOOLEANS

49       SELinux  policy is customizable based on least access required.  logadm
50       policy is extremely flexible and has several booleans that allow you to
51       manipulate the policy and run logadm with the tightest access possible.
52
53
54
55       If you want to allow users to resolve user passwd entries directly from
56       ldap rather then using a sssd server, you  must  turn  on  the  authlo‐
57       gin_nsswitch_use_ldap boolean. Disabled by default.
58
59       setsebool -P authlogin_nsswitch_use_ldap 1
60
61
62
63       If you want to deny user domains applications to map a memory region as
64       both executable and writable, this  is  dangerous  and  the  executable
65       should be reported in bugzilla, you must turn on the deny_execmem bool‐
66       ean. Enabled by default.
67
68       setsebool -P deny_execmem 1
69
70
71
72       If you want to deny any process from ptracing or  debugging  any  other
73       processes,  you  must  turn  on  the  deny_ptrace  boolean.  Enabled by
74       default.
75
76       setsebool -P deny_ptrace 1
77
78
79
80       If you want to allow any process  to  mmap  any  file  on  system  with
81       attribute  file_type,  you must turn on the domain_can_mmap_files bool‐
82       ean. Enabled by default.
83
84       setsebool -P domain_can_mmap_files 1
85
86
87
88       If you want to allow all domains write to kmsg_device, while kernel  is
89       executed  with  systemd.log_target=kmsg parameter, you must turn on the
90       domain_can_write_kmsg boolean. Disabled by default.
91
92       setsebool -P domain_can_write_kmsg 1
93
94
95
96       If you want to allow all domains to use other domains file descriptors,
97       you must turn on the domain_fd_use boolean. Enabled by default.
98
99       setsebool -P domain_fd_use 1
100
101
102
103       If  you  want to allow all domains to have the kernel load modules, you
104       must  turn  on  the  domain_kernel_load_modules  boolean.  Disabled  by
105       default.
106
107       setsebool -P domain_kernel_load_modules 1
108
109
110
111       If you want to allow all domains to execute in fips_mode, you must turn
112       on the fips_mode boolean. Enabled by default.
113
114       setsebool -P fips_mode 1
115
116
117
118       If you want to enable reading of urandom for all domains, you must turn
119       on the global_ssp boolean. Disabled by default.
120
121       setsebool -P global_ssp 1
122
123
124
125       If  you  want  to allow confined applications to run with kerberos, you
126       must turn on the kerberos_enabled boolean. Enabled by default.
127
128       setsebool -P kerberos_enabled 1
129
130
131
132       If you want to allow logging in and using the system from /dev/console,
133       you must turn on the login_console_enabled boolean. Enabled by default.
134
135       setsebool -P login_console_enabled 1
136
137
138
139       If  you  want  to  allow  system  to run with NIS, you must turn on the
140       nis_enabled boolean. Disabled by default.
141
142       setsebool -P nis_enabled 1
143
144
145
146       If you want to allow confined applications to use nscd  shared  memory,
147       you must turn on the nscd_use_shm boolean. Disabled by default.
148
149       setsebool -P nscd_use_shm 1
150
151
152
153       If  you  want to disallow programs, such as newrole, from transitioning
154       to administrative user domains, you must turn on the secure_mode  bool‐
155       ean. Enabled by default.
156
157       setsebool -P secure_mode 1
158
159
160
161       If  you  want  to allow unconfined executables to make their stack exe‐
162       cutable.  This should never, ever be necessary.  Probably  indicates  a
163       badly  coded  executable, but could indicate an attack. This executable
164       should be reported in bugzilla, you must turn on the  selinuxuser_exec‐
165       stack boolean. Enabled by default.
166
167       setsebool -P selinuxuser_execstack 1
168
169
170
171       If  you want to allow ssh logins as sysadm_r:sysadm_t, you must turn on
172       the ssh_sysadm_login boolean. Disabled by default.
173
174       setsebool -P ssh_sysadm_login 1
175
176
177
178       If you want to support NFS home  directories,  you  must  turn  on  the
179       use_nfs_home_dirs boolean. Disabled by default.
180
181       setsebool -P use_nfs_home_dirs 1
182
183
184
185       If  you  want  to  support SAMBA home directories, you must turn on the
186       use_samba_home_dirs boolean. Disabled by default.
187
188       setsebool -P use_samba_home_dirs 1
189
190
191
192       If you want to allow the graphical login program to login  directly  as
193       sysadm_r:sysadm_t,  you must turn on the xdm_sysadm_login boolean. Dis‐
194       abled by default.
195
196       setsebool -P xdm_sysadm_login 1
197
198
199

MANAGED FILES

201       The SELinux process type logadm_t can manage  files  labeled  with  the
202       following file types.  The paths listed are the default paths for these
203       file types.  Note the processes UID still need to have DAC permissions.
204
205       auditd_etc_t
206
207            /etc/audit(/.*)?
208
209       auditd_log_t
210
211            /var/log/audit(/.*)?
212            /var/log/audit.log.*
213
214       auditd_unit_file_t
215
216            /usr/lib/systemd/system/auditd.*
217
218       auditd_var_run_t
219
220            /var/run/auditd.pid
221            /var/run/auditd_sock
222            /var/run/audit_events
223
224       klogd_tmp_t
225
226
227       klogd_var_run_t
228
229            /var/run/klogd.pid
230
231       logfile
232
233            all log files
234
235       syslog_conf_t
236
237            /etc/syslog.conf
238            /etc/rsyslog.conf
239            /etc/rsyslog.d(/.*)?
240
241       syslogd_tmp_t
242
243
244       syslogd_var_lib_t
245
246            /var/lib/r?syslog(/.*)?
247            /var/lib/syslog-ng(/.*)?
248            /var/lib/syslog-ng.persist
249            /var/lib/misc/syslog-ng.persist-?
250
251       syslogd_var_run_t
252
253            /var/run/log(/.*)?
254            /var/run/syslog-ng.ctl
255            /var/run/syslog-ng(/.*)?
256            /var/run/systemd/journal(/.*)?
257            /var/run/metalog.pid
258            /var/run/syslogd.pid
259
260       systemd_passwd_var_run_t
261
262            /var/run/systemd/ask-password(/.*)?
263            /var/run/systemd/ask-password-block(/.*)?
264
265

COMMANDS

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

AUTHOR

284       This manual page was auto-generated using sepolicy manpage .
285
286

SEE ALSO

288       selinux(8), logadm(8),  semanage(8),  restorecon(8),  chcon(1),  sepol‐
289       icy(8) , setsebool(8)
290
291
292
293mgrepl@redhat.com                   logadm                   logadm_selinux(8)
Impressum