1logadm_selinux(8) logadm SELinux Policy documentation logadm_selinux(8)
2
3
4
6 logadm_r - Log administrator role - Security Enhanced Linux Policy
7
8
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 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
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 deny user domains applications to map a memory region as
56 both executable and writable, this is dangerous and the executable
57 should be reported in bugzilla, you must turn on the deny_execmem bool‐
58 ean. Disabled by default.
59
60 setsebool -P deny_execmem 1
61
62
63
64 If you want to deny any process from ptracing or debugging any other
65 processes, you must turn on the deny_ptrace boolean. Disabled by de‐
66 fault.
67
68 setsebool -P deny_ptrace 1
69
70
71
72 If you want to allow all domains to execute in fips_mode, you must turn
73 on the fips_mode boolean. Enabled by default.
74
75 setsebool -P fips_mode 1
76
77
78
79 If you want to allow system to run with NIS, you must turn on the
80 nis_enabled boolean. Disabled by default.
81
82 setsebool -P nis_enabled 1
83
84
85
86 If you want to allow unconfined executables to make their stack exe‐
87 cutable. This should never, ever be necessary. Probably indicates a
88 badly coded executable, but could indicate an attack. This executable
89 should be reported in bugzilla, you must turn on the selinuxuser_exec‐
90 stack boolean. Enabled by default.
91
92 setsebool -P selinuxuser_execstack 1
93
94
95
96 If you want to support NFS home directories, you must turn on the
97 use_nfs_home_dirs boolean. Disabled by default.
98
99 setsebool -P use_nfs_home_dirs 1
100
101
102
103 If you want to support SAMBA home directories, you must turn on the
104 use_samba_home_dirs boolean. Disabled by default.
105
106 setsebool -P use_samba_home_dirs 1
107
108
109
111 The SELinux process type logadm_t can manage files labeled with the
112 following file types. The paths listed are the default paths for these
113 file types. Note the processes UID still need to have DAC permissions.
114
115 auditd_etc_t
116
117 /etc/audit(/.*)?
118
119 auditd_log_t
120
121 /var/log/audit(/.*)?
122 /var/log/audit.log.*
123
124 auditd_unit_file_t
125
126 /usr/lib/systemd/system/auditd.*
127
128 auditd_var_run_t
129
130 /var/run/auditd.pid
131 /var/run/auditd_sock
132 /var/run/audit_events
133
134 klogd_tmp_t
135
136
137 klogd_var_run_t
138
139 /var/run/klogd.pid
140
141 krb5_host_rcache_t
142
143 /var/tmp/krb5_0.rcache2
144 /var/cache/krb5rcache(/.*)?
145 /var/tmp/nfs_0
146 /var/tmp/DNS_25
147 /var/tmp/host_0
148 /var/tmp/imap_0
149 /var/tmp/HTTP_23
150 /var/tmp/HTTP_48
151 /var/tmp/ldap_55
152 /var/tmp/ldap_487
153 /var/tmp/ldapmap1_0
154
155 logfile
156
157 all log files
158
159 syslog_conf_t
160
161 /etc/syslog.conf
162 /etc/rsyslog.conf
163 /etc/rsyslog.d(/.*)?
164
165 syslogd_tmp_t
166
167
168 syslogd_var_lib_t
169
170 /var/lib/r?syslog(/.*)?
171 /var/lib/syslog-ng(/.*)?
172 /var/lib/syslog-ng.persist
173 /var/lib/misc/syslog-ng.persist-?
174
175 syslogd_var_run_t
176
177 /var/run/log(/.*)?
178 /var/run/syslog-ng.ctl
179 /var/run/syslog-ng(/.*)?
180 /var/run/systemd/journal(/.*)?
181 /var/run/systemd/journal.[^/]+(/.*)?
182 /var/run/metalog.pid
183 /var/run/syslogd.pid
184
185 systemd_passwd_var_run_t
186
187 /var/run/systemd/ask-password(/.*)?
188 /var/run/systemd/ask-password-block(/.*)?
189
190
192 semanage fcontext can also be used to manipulate default file context
193 mappings.
194
195 semanage permissive can also be used to manipulate whether or not a
196 process type is permissive.
197
198 semanage module can also be used to enable/disable/install/remove pol‐
199 icy modules.
200
201 semanage boolean can also be used to manipulate the booleans
202
203
204 system-config-selinux is a GUI tool available to customize SELinux pol‐
205 icy settings.
206
207
209 This manual page was auto-generated using sepolicy manpage .
210
211
213 selinux(8), logadm(8), semanage(8), restorecon(8), chcon(1), sepol‐
214 icy(8), setsebool(8)
215
216
217
218mgrepl@redhat.com logadm logadm_selinux(8)