Bug 862954

Summary: SELinux is preventing /usr/bin/python2.7 from 'write' accesses on the fifo_file hpfax-pipe-10.
Product: [Fedora] Fedora Reporter: Tony <tony.baz>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:40531507cda8d4e2a39ff29cc188e160964eb02dd5702d4b06ac2c3a6174ac0c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-04 08:01:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Tony 2012-10-04 02:54:39 UTC
Description of problem:
When attempting to print to fax from Libreoffice Write on HP fax / printer C7280.
Happens every time I try to print to fax.


Additional info:
libreport version: 2.0.14
kernel:         3.5.4-2.fc17.x86_64

description:
:SELinux is preventing /usr/bin/python2.7 from 'write' accesses on the fifo_file hpfax-pipe-10.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that python2.7 should be allowed write access on the hpfax-pipe-10 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 hpfax /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:hplip_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:var_log_t:s0
:Target Objects                hpfax-pipe-10 [ fifo_file ]
:Source                        hpfax
:Source Path                   /usr/bin/python2.7
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           python-2.7.3-7.2.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-149.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.5.4-2.fc17.x86_64 #1 SMP Wed Sep
:                              26 21:58:50 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-10-04 15:14:49 NZDT
:Last Seen                     2012-10-04 15:14:49 NZDT
:Local ID                      2d6fe37d-d9bf-43d0-8975-c688448fa9f2
:
:Raw Audit Messages
:type=AVC msg=audit(1349316889.107:104): avc:  denied  { write } for  pid=2113 comm="hpfax" name="hpfax-pipe-10" dev="sda5" ino=915545 scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_log_t:s0 tclass=fifo_file
:
:
:type=AVC msg=audit(1349316889.107:104): avc:  denied  { open } for  pid=2113 comm="hpfax" path="/var/log/hp/hpfax-pipe-10" dev="sda5" ino=915545 scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_log_t:s0 tclass=fifo_file
:
:
:type=SYSCALL msg=audit(1349316889.107:104): arch=x86_64 syscall=open success=yes exit=ENXIO a0=1ae80f0 a1=1 a2=1ff a3=20 items=0 ppid=698 pid=2113 auid=4294967295 uid=0 gid=7 euid=0 suid=0 fsuid=0 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm=hpfax exe=/usr/bin/python2.7 subj=system_u:system_r:hplip_t:s0-s0:c0.c1023 key=(null)
:
:Hash: hpfax,hplip_t,var_log_t,fifo_file,write
:
:audit2allow
:
:#============= hplip_t ==============
:#!!!! The source type 'hplip_t' can write to a 'fifo_file' of the following type:
:# hplip_tmp_t
:
:allow hplip_t var_log_t:fifo_file { write open };
:
:audit2allow -R
:
:#============= hplip_t ==============
:#!!!! The source type 'hplip_t' can write to a 'fifo_file' of the following type:
:# hplip_tmp_t
:
:allow hplip_t var_log_t:fifo_file { write open };
:

Comment 1 Tony 2012-10-04 02:54:42 UTC
Created attachment 621277 [details]
File: type

Comment 2 Tony 2012-10-04 02:54:44 UTC
Created attachment 621278 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-10-04 08:01:54 UTC

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