Bug 726657

Summary: SELinux is preventing /usr/bin/tpprint from 'read' accesses on the fifo_file fd.
Product: [Fedora] Fedora Reporter: oeffoeff1967
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:672880cf1ea19418dc1699e94d5e42cbcfcf3e451a2a835066367f2dd25ec115
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-29 12:00:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description oeffoeff1967 2011-07-29 11:24:17 UTC
SELinux is preventing /usr/bin/tpprint from 'read' accesses on the fifo_file fd.

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

If you believe that tpprint should be allowed read access on the fd fifo_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:
# grep tpprint /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:cupsd_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:var_spool_t:s0
Target Objects                fd [ fifo_file ]
Source                        tpprint
Source Path                   /usr/bin/tpprint
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           turboprint-2.21-1
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-34.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.38.8-35.fc15.x86_64 #1 SMP Wed Jul 6 13:58:54
                              UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Do 28 Jul 2011 00:15:03 CEST
Last Seen                     Do 28 Jul 2011 00:15:03 CEST
Local ID                      0daacd7b-7d42-4120-a36b-0a0114ae0e2c

Raw Audit Messages
type=AVC msg=audit(1311804903.441:337): avc:  denied  { read } for  pid=15400 comm="tpprint" name="fd" dev=dm-4 ino=1312773 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_spool_t:s0 tclass=fifo_file


type=SYSCALL msg=audit(1311804903.441:337): arch=x86_64 syscall=open success=no exit=EACCES a0=70dca0 a1=800 a2=100 a3=7fff927b6360 items=0 ppid=15379 pid=15400 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm=tpprint exe=/usr/bin/tpprint subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)

Hash: tpprint,cupsd_t,var_spool_t,fifo_file,read

audit2allow

#============= cupsd_t ==============
allow cupsd_t var_spool_t:fifo_file read;

audit2allow -R

#============= cupsd_t ==============
allow cupsd_t var_spool_t:fifo_file read;

Comment 1 Miroslav Grepl 2011-07-29 12:00:57 UTC

*** This bug has been marked as a duplicate of bug 726655 ***