1avahi_selinux(8) SELinux Policy avahi avahi_selinux(8)
2
3
4
6 avahi_selinux - Security Enhanced Linux Policy for the avahi processes
7
9 Security-Enhanced Linux secures the avahi processes via flexible manda‐
10 tory access control.
11
12 The avahi processes execute with the avahi_t SELinux type. You can
13 check if you have these processes running by executing the ps command
14 with the -Z qualifier.
15
16 For example:
17
18 ps -eZ | grep avahi_t
19
20
21
23 The avahi_t SELinux type can be entered via the avahi_exec_t file type.
24
25 The default entrypoint paths for the avahi_t domain are the following:
26
27 /usr/sbin/avahi-daemon, /usr/sbin/avahi-autoipd, /usr/sbin/avahi-
28 dnsconfd
29
31 SELinux defines process types (domains) for each process running on the
32 system
33
34 You can see the context of a process using the -Z option to ps
35
36 Policy governs the access confined processes have to files. SELinux
37 avahi policy is very flexible allowing users to setup their avahi pro‐
38 cesses in as secure a method as possible.
39
40 The following process types are defined for avahi:
41
42 avahi_t
43
44 Note: semanage permissive -a avahi_t can be used to make the process
45 type avahi_t permissive. SELinux does not deny access to permissive
46 process types, but the AVC (SELinux denials) messages are still gener‐
47 ated.
48
49
51 SELinux policy is customizable based on least access required. avahi
52 policy is extremely flexible and has several booleans that allow you to
53 manipulate the policy and run avahi with the tightest access possible.
54
55
56
57 If you want to allow all domains to execute in fips_mode, you must turn
58 on the fips_mode boolean. Enabled by default.
59
60 setsebool -P fips_mode 1
61
62
63
64 If you want to allow Apache to communicate with avahi service via dbus,
65 you must turn on the httpd_dbus_avahi boolean. Disabled by default.
66
67 setsebool -P httpd_dbus_avahi 1
68
69
70
72 The SELinux process type avahi_t can manage files labeled with the fol‐
73 lowing file types. The paths listed are the default paths for these
74 file types. Note the processes UID still need to have DAC permissions.
75
76 avahi_var_lib_t
77
78 /var/lib/avahi-autoipd(/.*)?
79
80 avahi_var_run_t
81
82 /var/run/avahi-daemon(/.*)?
83
84 cluster_conf_t
85
86 /etc/cluster(/.*)?
87
88 cluster_var_lib_t
89
90 /var/lib/pcsd(/.*)?
91 /var/lib/cluster(/.*)?
92 /var/lib/openais(/.*)?
93 /var/lib/pengine(/.*)?
94 /var/lib/corosync(/.*)?
95 /usr/lib/heartbeat(/.*)?
96 /var/lib/heartbeat(/.*)?
97 /var/lib/pacemaker(/.*)?
98
99 cluster_var_run_t
100
101 /var/run/crm(/.*)?
102 /var/run/cman_.*
103 /var/run/rsctmp(/.*)?
104 /var/run/aisexec.*
105 /var/run/heartbeat(/.*)?
106 /var/run/pcsd-ruby.socket
107 /var/run/corosync-qnetd(/.*)?
108 /var/run/corosync-qdevice(/.*)?
109 /var/run/corosync.pid
110 /var/run/cpglockd.pid
111 /var/run/rgmanager.pid
112 /var/run/cluster/rgmanager.sk
113
114 krb5_host_rcache_t
115
116 /var/tmp/krb5_0.rcache2
117 /var/cache/krb5rcache(/.*)?
118 /var/tmp/nfs_0
119 /var/tmp/DNS_25
120 /var/tmp/host_0
121 /var/tmp/imap_0
122 /var/tmp/HTTP_23
123 /var/tmp/HTTP_48
124 /var/tmp/ldap_55
125 /var/tmp/ldap_487
126 /var/tmp/ldapmap1_0
127
128 root_t
129
130 /sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
131 /
132 /initrd
133
134
136 SELinux requires files to have an extended attribute to define the file
137 type.
138
139 You can see the context of a file using the -Z option to ls
140
141 Policy governs the access confined processes have to these files.
142 SELinux avahi policy is very flexible allowing users to setup their
143 avahi processes in as secure a method as possible.
144
145 STANDARD FILE CONTEXT
146
147 SELinux defines the file context types for the avahi, if you wanted to
148 store files with these types in a diffent paths, you need to execute
149 the semanage command to specify alternate labeling and then use re‐
150 storecon to put the labels on disk.
151
152 semanage fcontext -a -t avahi_unit_file_t '/srv/myavahi_content(/.*)?'
153 restorecon -R -v /srv/myavahi_content
154
155 Note: SELinux often uses regular expressions to specify labels that
156 match multiple files.
157
158 The following file types are defined for avahi:
159
160
161
162 avahi_conf_t
163
164 - Set files with the avahi_conf_t type, if you want to treat the files
165 as avahi configuration data, usually stored under the /etc directory.
166
167
168
169 avahi_exec_t
170
171 - Set files with the avahi_exec_t type, if you want to transition an
172 executable to the avahi_t domain.
173
174
175 Paths:
176 /usr/sbin/avahi-daemon, /usr/sbin/avahi-autoipd, /usr/sbin/avahi-
177 dnsconfd
178
179
180 avahi_initrc_exec_t
181
182 - Set files with the avahi_initrc_exec_t type, if you want to transi‐
183 tion an executable to the avahi_initrc_t domain.
184
185
186
187 avahi_unit_file_t
188
189 - Set files with the avahi_unit_file_t type, if you want to treat the
190 files as avahi unit content.
191
192
193
194 avahi_var_lib_t
195
196 - Set files with the avahi_var_lib_t type, if you want to store the
197 avahi files under the /var/lib directory.
198
199
200
201 avahi_var_run_t
202
203 - Set files with the avahi_var_run_t type, if you want to store the
204 avahi files under the /run or /var/run directory.
205
206
207
208 Note: File context can be temporarily modified with the chcon command.
209 If you want to permanently change the file context you need to use the
210 semanage fcontext command. This will modify the SELinux labeling data‐
211 base. You will need to use restorecon to apply the labels.
212
213
215 semanage fcontext can also be used to manipulate default file context
216 mappings.
217
218 semanage permissive can also be used to manipulate whether or not a
219 process type is permissive.
220
221 semanage module can also be used to enable/disable/install/remove pol‐
222 icy modules.
223
224 semanage boolean can also be used to manipulate the booleans
225
226
227 system-config-selinux is a GUI tool available to customize SELinux pol‐
228 icy settings.
229
230
232 This manual page was auto-generated using sepolicy manpage .
233
234
236 selinux(8), avahi(8), semanage(8), restorecon(8), chcon(1), sepol‐
237 icy(8), setsebool(8)
238
239
240
241avahi 23-02-03 avahi_selinux(8)