fedora-selinux / selinux-policy

selinux-policy for Fedora is a large patch off the mainline
GNU General Public License v2.0
161 stars 162 forks source link

Allow smbd_t to watch user_home_dir_t if samba_enable_home_dirs is on #2005

Closed JurajMarcin closed 7 months ago

JurajMarcin commented 7 months ago

When samba is allowed to access home directory, it sometimes needs to add watch on the whole home directory to respond to watch requests from clients (for example from Windows).

Addresses the following denial: type=AVC msg=audit(1705933921.682:202): avc: denied { watch } for pid=11956 comm="smbd-notifyd" path="/home/test" dev="vda4" ino=912095 scontext=system_u:system_r:smbd_t:s0 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=dir permissive=0

Resolves: RHEL-14735

zpytela commented 7 months ago

LGTM