Bug 1395801

Summary: SELinux prevents cups-browsed from creating tmp files
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-16 23:46:00 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:

Description Orion Poplawski 2016-11-16 17:36:08 UTC
Description of problem:

Nov 16 10:31:49 vmrawhide.cora.nwra.com audit[1409]: AVC avc:  denied  { create } for  pid=1409 comm="cups-browsed" name="582c9805cbe08" scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=lnk_file permissive=1
Nov 16 10:31:50 vmrawhide.cora.nwra.com audit[1409]: AVC avc:  denied  { unlink } for  pid=1409 comm="cups-browsed" name="582c9805cbe08" dev="tmpfs" ino=2797014 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=lnk_file permissive=1

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-225.fc26.noarch

Comment 1 Simon Sekidde 2016-12-16 15:47:29 UTC
The correct label would be cupsd_tmp_t. Do you have the full path to the file/directory?

 find / -inum 2797014

Comment 2 Orion Poplawski 2016-12-16 23:46:00 UTC
I no longer see this with:

selinux-policy-3.13.1-231.fc26.noarch
cups-filters-1.13.0-1.fc26.x86_64