Bug 1203149

Summary: SELinux is preventing hpfax from 'rename' accesses on the file __init__.cpython-34.pyc.3068762472.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:b7f94aa2e719b838ae514e22c75d961c0f220d9e9e79048f5634ef6c7fc47640
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-18 12:36:38 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:

Description Mikhail 2015-03-18 09:21:35 UTC
Description of problem:
SELinux is preventing hpfax from 'rename' accesses on the file __init__.cpython-34.pyc.3068762472.

*****  Plugin catchall_labels (83.8 confidence) suggests   *******************

If you want to allow hpfax to have rename access on the __init__.cpython-34.pyc.3068762472 file
Then you need to change the label on __init__.cpython-34.pyc.3068762472
Do
# semanage fcontext -a -t FILE_TYPE '__init__.cpython-34.pyc.3068762472'
where FILE_TYPE is one of the following: cupsd_interface_t, cupsd_lock_t, cupsd_log_t, cupsd_rw_etc_t, cupsd_tmp_t, cupsd_var_lib_t, cupsd_var_run_t, krb5_host_rcache_t, print_spool_t. 
Then execute: 
restorecon -v '__init__.cpython-34.pyc.3068762472'


*****  Plugin catchall (17.1 confidence) suggests   **************************

If you believe that hpfax should be allowed rename access on the __init__.cpython-34.pyc.3068762472 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:cupsd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:usr_t:s0
Target Objects                __init__.cpython-34.pyc.3068762472 [ file ]
Source                        hpfax
Source Path                   hpfax
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-116.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.0.0-0.rc3.git0.1.fc22.i686+PAE
                              #1 SMP Mon Mar 9 13:53:28 UTC 2015 i686 i686
Alert Count                   1
First Seen                    2015-03-18 14:19:49 YEKT
Last Seen                     2015-03-18 14:19:49 YEKT
Local ID                      4d9d61dc-e7e1-483f-94ae-a8e8a27f1286

Raw Audit Messages
type=AVC msg=audit(1426670389.905:614): avc:  denied  { rename } for  pid=5709 comm="hpfax" name="__init__.cpython-34.pyc.3068762472" dev="sda1" ino=1199831 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usr_t:s0 tclass=file permissive=1


Hash: hpfax,cupsd_t,usr_t,file,rename

Version-Release number of selected component:
selinux-policy-3.13.1-116.fc22.noarch

Additional info:
reporter:       libreport-2.4.0
hashmarkername: setroubleshoot
kernel:         4.0.0-0.rc3.git0.1.fc22.i686+PAE
type:           libreport

Comment 1 Daniel Walsh 2015-03-18 12:36:38 UTC

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