Bug 815767

Summary: SELinux is preventing /usr/sbin/pppd from 'ioctl' accesses on the socket socket.
Product: [Fedora] Fedora Reporter: ManFree <roman_romul>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:2d4893340299251863a96213ec35a2ef4ea6a81cebcd05c572a7386f14b5fe53
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-25 15:24:45 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 ManFree 2012-04-24 13:29:39 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-7.fc16.i686
reason:         SELinux is preventing /usr/sbin/pppd from 'ioctl' accesses on the socket socket.
time:           Tue Apr 24 21:29:26 2012

description:
:SELinux is preventing /usr/sbin/pppd from 'ioctl' accesses on the socket socket.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that pppd should be allowed ioctl access on the socket 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 pppd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:pppd_t:s0
:Target Context                system_u:system_r:l2tpd_t:s0
:Target Objects                socket [ socket ]
:Source                        pppd
:Source Path                   /usr/sbin/pppd
:Port                          <Неизвестно>
:Host                          (removed)
:Source RPM Packages           ppp-2.4.5-18.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-86.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.0-7.fc16.i686 #1
:                              SMP Tue Nov 1 21:00:16 UTC 2011 i686 i686
:Alert Count                   1
:First Seen                    Вт. 24 апр. 2012 21:29:01
:Last Seen                     Вт. 24 апр. 2012 21:29:01
:Local ID                      c33b5a5b-d8da-4eca-a256-d713cd334a01
:
:Raw Audit Messages
:type=AVC msg=audit(1335288541.796:103): avc:  denied  { ioctl } for  pid=14496 comm="pppd" path="socket:[893943]" dev=sockfs ino=893943 scontext=system_u:system_r:pppd_t:s0 tcontext=system_u:system_r:l2tpd_t:s0 tclass=socket
:
:
:type=SYSCALL msg=audit(1335288541.796:103): arch=i386 syscall=ioctl success=yes exit=0 a0=11 a1=80047437 a2=8db83c a3=11 items=0 ppid=14492 pid=14496 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=pppd exe=/usr/sbin/pppd subj=system_u:system_r:pppd_t:s0 key=(null)
:
:Hash: pppd,pppd_t,l2tpd_t,socket,ioctl
:
:audit2allow
:
:#============= pppd_t ==============
:allow pppd_t l2tpd_t:socket ioctl;
:
:audit2allow -R
:
:#============= pppd_t ==============
:allow pppd_t l2tpd_t:socket ioctl;
:

Comment 1 Miroslav Grepl 2012-04-24 14:42:33 UTC
*** Bug 815768 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2012-04-24 14:43:07 UTC
*** Bug 815770 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2012-04-25 06:04:27 UTC
cat /tmp/l2tpd.log |audit2allow
WARNING: Policy would be downgraded from version 27 to 26.


#============= pppd_t ==============
#!!!! This avc is allowed in the current policy

allow pppd_t l2tpd_t:socket ioctl;

Comment 4 Miroslav Grepl 2012-04-25 06:07:00 UTC
Fixed in selinux-policy-3.10.0-87.fc16

Comment 5 ManFree 2012-04-25 15:24:45 UTC
No problem in selinux-policy-3.10.0-87.fc16.
Fixed.