Bug 974067 - SELinux is preventing /usr/bin/python2.7 from 'ioctl' accesses on the unix_stream_socket unix_stream_socket.
SELinux is preventing /usr/bin/python2.7 from 'ioctl' accesses on the unix_st...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
19
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:c9c76a4d73495b27b797483275f...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-13 07:21 EDT by Miroslav Grepl
Modified: 2013-06-13 07:22 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-06-13 07:22:42 EDT
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 Miroslav Grepl 2013-06-13 07:21:59 EDT
Description of problem:
SELinux is preventing /usr/bin/python2.7 from 'ioctl' accesses on the unix_stream_socket unix_stream_socket.

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

If you believe that python2.7 should be allowed ioctl access on the unix_stream_socket unix_stream_socket 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 firewall-config /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                staff_u:staff_r:staff_t:s0-s0:c0.c1023
Target Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Objects                unix_stream_socket [ unix_stream_socket ]
Source                        firewall-config
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.5-1.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-47.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.4-301.fc19.x86_64 #1 SMP Tue
                              Jun 4 00:30:04 UTC 2013 x86_64 x86_64
Alert Count                   6
First Seen                    2013-06-11 15:12:49 CEST
Last Seen                     2013-06-13 13:20:53 CEST
Local ID                      d67e85d0-f2cf-4c09-b899-84c291864cfb

Raw Audit Messages
type=AVC msg=audit(1371122453.131:4425): avc:  denied  { ioctl } for  pid=13095 comm="sealert" path="socket:[26259]" dev="sockfs" ino=26259 scontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tcontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tclass=unix_stream_socket


type=SYSCALL msg=audit(1371122453.131:4425): arch=x86_64 syscall=ioctl success=no exit=EACCES a0=2 a1=5401 a2=7fff01b16080 a3=38b23c15d0 items=0 ppid=2263 pid=13095 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=sealert exe=/usr/bin/python2.7 subj=staff_u:staff_r:staff_t:s0-s0:c0.c1023 key=(null)

Hash: firewall-config,staff_t,xdm_t,unix_stream_socket,ioctl

Additional info:
reporter:       libreport-2.1.4
hashmarkername: setroubleshoot
kernel:         3.9.4-301.fc19.x86_64
type:           libreport

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