Bug 1401634

Summary: SELinux is preventing cups-browsed from create access on the lnk_file 58456ab283fca.
Product: [Fedora] Fedora Reporter: Simon Sekidde <ssekidde>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-251.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-09 21:21:22 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 Simon Sekidde 2016-12-05 18:46:31 UTC
Description of problem:

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that cups-browsed should be allowed create access on the 58456ab283fca lnk_file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'cups-browsed' --raw | audit2allow -M my-cupsbrowsed
# semodule -X 300 -i my-cupsbrowsed.pp


Additional Information:
Source Context                system_u:system_r:cupsd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:tmp_t:s0
Target Objects                58456ab283fca [ lnk_file ]
Source                        cups-browsed
Source Path                   cups-browsed
Port                          <Unknown>
Host                          <Unknown>
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-227.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     <redacted>
Platform                      Linux <redacted>
                              4.9.0-0.rc7.git3.2.fc26.x86_64 #1 SMP Thu Dec 1
                              22:50:14 UTC 2016 x86_64 x86_64
Alert Count                   16516
First Seen                    2016-12-05 08:25:06 EST
Last Seen                     2016-12-05 08:25:06 EST
Local ID                      03567105-d016-4d54-8f02-70cad32ea3e3

Raw Audit Messages
type=AVC msg=audit(1480944306.539:27564): avc:  denied  { create } for  pid=1374 comm="cups-browsed" name="58456ab283fca" scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=lnk_file permissive=0


Hash: cups-browsed,cupsd_t,tmp_t,lnk_file,create

Comment 2 Fedora End Of Life 2017-02-28 10:44:10 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 3 Fedora Update System 2017-04-19 20:38:42 UTC
selinux-policy-3.13.1-251.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f36794dd98

Comment 4 Fedora Update System 2017-04-20 20:23:29 UTC
selinux-policy-3.13.1-251.fc26 has been pushed to the Fedora 26 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-2017-f36794dd98

Comment 5 Fedora Update System 2017-05-09 21:21:22 UTC
selinux-policy-3.13.1-251.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.