Bug 726657 - SELinux is preventing /usr/bin/tpprint from 'read' accesses on the fifo_file fd.
Summary: SELinux is preventing /usr/bin/tpprint from 'read' accesses on the fifo_file fd.
Keywords:
Status: CLOSED DUPLICATE of bug 726655
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:672880cf1ea...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-29 11:24 UTC by oeffoeff1967
Modified: 2011-07-29 12:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-29 12:00:57 UTC
Type: ---


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.