1aide_selinux(8) SELinux Policy aide aide_selinux(8)
2
3
4
6 aide_selinux - Security Enhanced Linux Policy for the aide processes
7
9 Security-Enhanced Linux secures the aide processes via flexible manda‐
10 tory access control.
11
12 The aide processes execute with the aide_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 aide_t
19
20
21
23 The aide_t SELinux type can be entered via the aide_exec_t file type.
24
25 The default entrypoint paths for the aide_t domain are the following:
26
27 /usr/sbin/aide
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 aide policy is very flexible allowing users to setup their aide pro‐
37 cesses in as secure a method as possible.
38
39 The following process types are defined for aide:
40
41 aide_t
42
43 Note: semanage permissive -a aide_t can be used to make the process
44 type aide_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. aide
51 policy is extremely flexible and has several booleans that allow you to
52 manipulate the policy and run aide 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 sysadm to debug or ptrace all processes, you must
64 turn on the allow_ptrace boolean. Disabled by default.
65
66 setsebool -P allow_ptrace 1
67
68
69
70 If you want to allow all domains to have the kernel load modules, you
71 must turn on the domain_kernel_load_modules boolean. Disabled by
72 default.
73
74 setsebool -P domain_kernel_load_modules 1
75
76
77
78 If you want to allow all domains to execute in fips_mode, you must turn
79 on the fips_mode boolean. Enabled by default.
80
81 setsebool -P fips_mode 1
82
83
84
85 If you want to enable reading of urandom for all domains, you must turn
86 on the global_ssp boolean. Disabled by default.
87
88 setsebool -P global_ssp 1
89
90
91
93 The SELinux process type aide_t can manage files labeled with the fol‐
94 lowing file types. The paths listed are the default paths for these
95 file types. Note the processes UID still need to have DAC permissions.
96
97 aide_db_t
98
99 /var/lib/aide(/.*)?
100
101 aide_log_t
102
103 /var/log/aide(/.*)?
104 /var/log/aide.log.*
105
106 initrc_tmp_t
107
108
109 mnt_t
110
111 /mnt(/[^/]*)
112 /mnt(/[^/]*)?
113 /rhev(/[^/]*)?
114 /media(/[^/]*)
115 /media(/[^/]*)?
116 /etc/rhgb(/.*)?
117 /media/.hal-.*
118 /net
119 /afs
120 /rhev
121 /misc
122
123 tmp_t
124
125 /tmp
126 /usr/tmp
127 /var/tmp
128 /tmp-inst
129 /var/tmp-inst
130 /var/tmp/vi.recover
131
132
134 SELinux requires files to have an extended attribute to define the file
135 type.
136
137 You can see the context of a file using the -Z option to ls
138
139 Policy governs the access confined processes have to these files.
140 SELinux aide policy is very flexible allowing users to setup their aide
141 processes in as secure a method as possible.
142
143 EQUIVALENCE DIRECTORIES
144
145
146 aide policy stores data with multiple different file context types
147 under the /var/log/aide directory. If you would like to store the data
148 in a different directory you can use the semanage command to create an
149 equivalence mapping. If you wanted to store this data under the /srv
150 dirctory you would execute the following command:
151
152 semanage fcontext -a -e /var/log/aide /srv/aide
153 restorecon -R -v /srv/aide
154
155 STANDARD FILE CONTEXT
156
157 SELinux defines the file context types for the aide, if you wanted to
158 store files with these types in a diffent paths, you need to execute
159 the semanage command to sepecify alternate labeling and then use
160 restorecon to put the labels on disk.
161
162 semanage fcontext -a -t aide_log_t '/srv/myaide_content(/.*)?'
163 restorecon -R -v /srv/myaide_content
164
165 Note: SELinux often uses regular expressions to specify labels that
166 match multiple files.
167
168 The following file types are defined for aide:
169
170
171
172 aide_db_t
173
174 - Set files with the aide_db_t type, if you want to treat the files as
175 aide database content.
176
177
178
179 aide_exec_t
180
181 - Set files with the aide_exec_t type, if you want to transition an
182 executable to the aide_t domain.
183
184
185
186 aide_log_t
187
188 - Set files with the aide_log_t type, if you want to treat the data as
189 aide log data, usually stored under the /var/log directory.
190
191
192 Paths:
193 /var/log/aide(/.*)?, /var/log/aide.log.*
194
195
196 Note: File context can be temporarily modified with the chcon command.
197 If you want to permanently change the file context you need to use the
198 semanage fcontext command. This will modify the SELinux labeling data‐
199 base. You will need to use restorecon to apply the labels.
200
201
203 semanage fcontext can also be used to manipulate default file context
204 mappings.
205
206 semanage permissive can also be used to manipulate whether or not a
207 process type is permissive.
208
209 semanage module can also be used to enable/disable/install/remove pol‐
210 icy modules.
211
212 semanage boolean can also be used to manipulate the booleans
213
214
215 system-config-selinux is a GUI tool available to customize SELinux pol‐
216 icy settings.
217
218
220 This manual page was auto-generated using sepolicy manpage .
221
222
224 selinux(8), aide(8), semanage(8), restorecon(8), chcon(1) , setse‐
225 bool(8)
226
227
228
229aide 15-06-03 aide_selinux(8)