Bug 1470398 - SELinux is preventing hpfax from 'open' accesses on the file /usr/lib/python3.5/site-packages/async_timeout-1.2.1-py3.5.egg.
SELinux is preventing hpfax from 'open' accesses on the file /usr/lib/python3...
Status: NEW
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
25
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
abrt_hash:0f9d63e71678274b395d7a09c12...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-12 18:32 EDT by Dalya Raad
Modified: 2017-07-12 18:32 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Dalya Raad 2017-07-12 18:32:12 EDT
Description of problem:
SELinux is preventing hpfax from 'open' accesses on the file /usr/lib/python3.5/site-packages/async_timeout-1.2.1-py3.5.egg.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If you want to fix the label. 
/usr/lib/python3.5/site-packages/async_timeout-1.2.1-py3.5.egg default label should be lib_t.
Then you can run restorecon. The access attempt may have been stopped due to insufficient permissions to access a parent directory in which case try to change the following command accordingly.
Do
# /sbin/restorecon -v /usr/lib/python3.5/site-packages/async_timeout-1.2.1-py3.5.egg

*****  Plugin catchall (1.49 confidence) suggests   **************************

If you believe that hpfax should be allowed open access on the async_timeout-1.2.1-py3.5.egg 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:
# ausearch -c 'hpfax' --raw | audit2allow -M my-hpfax
# semodule -X 300 -i my-hpfax.pp

Additional Information:
Source Context                system_u:system_r:cupsd_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_tmp_t:s0
Target Objects                /usr/lib/python3.5/site-
                              packages/async_timeout-1.2.1-py3.5.egg [ file ]
Source                        hpfax
Source Path                   hpfax
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-225.18.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.8-200.fc25.x86_64 #1 SMP Thu
                              Jun 29 16:13:56 UTC 2017 x86_64 x86_64
Alert Count                   3
First Seen                    2017-07-10 16:25:33 +03
Last Seen                     2017-07-10 16:25:33 +03
Local ID                      df11a8da-eb51-436d-9930-0e2dd7ad1508

Raw Audit Messages
type=AVC msg=audit(1499693133.479:289): avc:  denied  { open } for  pid=3469 comm="hpfax" path="/usr/lib/python3.5/site-packages/async_timeout-1.2.1-py3.5.egg" dev="dm-0" ino=676897 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file permissive=0


Hash: hpfax,cupsd_t,user_tmp_t,file,open

Version-Release number of selected component:
selinux-policy-3.13.1-225.18.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.11.8-200.fc25.x86_64
type:           libreport

Potential duplicate: bug 1371198

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