samba: allow smbd_t to send and receive messages from avahi over dbus

Fixes:
avc: denied { send_msg } for msgtype=method_call
interface=org.freedesktop.Avahi.Server member=GetAPIVersion
dest=org.freedesktop.Avahi spid=481 tpid=508
scontext=system_u:system_r:smbd_t tcontext=system_u:system_r:avahi_t
tclass=dbus permissive=1

avc: denied { send_msg } for msgtype=signal
interface=org.freedesktop.Avahi.Server member=StateChanged
dest=org.freedesktop.DBus spid=508 tpid=481
scontext=system_u:system_r:avahi_t tcontext=system_u:system_r:smbd_t
tclass=dbus permissive=1

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
This commit is contained in:
Yi Zhao 2021-10-18 23:35:21 +08:00
parent e9ee912643
commit 6a3bba766f

View File

@ -467,6 +467,10 @@ optional_policy(`
optional_policy(`
dbus_system_bus_client(smbd_t)
optional_policy(`
avahi_dbus_chat(smbd_t)
')
')
optional_policy(`