Bug 1653024

Summary: SELinux allow saslauthd to mmap it's own files
Product: [Fedora] Fedora Reporter: Anthony Messina <amessina>
Component: selinux-policy-targetedAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: medium    
Version: 29CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-17 02:17:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anthony Messina 2018-11-24 16:23:48 UTC
AVC avc:  denied  { map } for  pid=690 comm="saslauthd" path="/run/saslauthd/cache.mmap" dev="tmpfs" ino=27073 scontext=system_u:system_r:saslauthd_t:s0 tcontext=system_u:object_r:saslauthd_var_run_t:s0 tclass=file permissive=1

audit2allow reports:
#!!!! This avc can be allowed using the boolean 'domain_can_mmap_files'
allow saslauthd_t saslauthd_var_run_t:file map;

It would be preferable to 
allow saslauthd_t saslauthd_var_run_t:file map;
in the upstream policy rather than enable domain_can_mmap_files for everything

Comment 1 Lukas Vrabec 2019-01-07 21:56:57 UTC
commit 37b3e84cdcb022353b17e31025b6be051d6bb1c4 (HEAD -> rawhide)
Author: Lukas Vrabec <lvrabec>
Date:   Mon Jan 7 22:56:35 2019 +0100

    Allow saslauthd_t domain to mmap own pid files BZ(1653024)

Comment 2 Fedora Update System 2019-01-13 15:45:27 UTC
selinux-policy-3.14.2-46.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-6a20cfef61

Comment 3 Fedora Update System 2019-01-14 03:03:36 UTC
selinux-policy-3.14.2-46.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-6a20cfef61

Comment 4 Fedora Update System 2019-01-17 02:17:09 UTC
selinux-policy-3.14.2-46.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.