Bug 718466

Summary: SELinux is preventing /usr/sbin/pppd from 'getopt' accesses on the socket Unknown.
Product: [Fedora] Fedora Reporter: ManFree <roman_romul>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:43b27a18f0ca82c0744d3340774d52d87351ecd3dee64dc05ff39fc4d7505959
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-05 19:54:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description ManFree 2011-07-03 09:43:52 UTC
SELinux is preventing /usr/sbin/pppd from 'getopt' accesses on the socket Unknown.

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

If you believe that pppd should be allowed getopt access on the Unknown 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:initrc_t:s0
Target Objects                Unknown [ socket ]
Source                        pppd
Source Path                   /usr/sbin/pppd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ppp-2.4.5-16.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-23.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.7-30.fc15.i686
                              #1 SMP Fri May 27 06:02:17 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Sun 03 Jul 2011 04:33:46 PM MSD
Last Seen                     Sun 03 Jul 2011 04:33:46 PM MSD
Local ID                      6052582a-9acb-43c6-b355-10babcedbffc

Raw Audit Messages
type=AVC msg=audit(1309696426.549:110): avc:  denied  { getopt } for  pid=6779 comm="pppd" scontext=system_u:system_r:pppd_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=socket


type=SYSCALL msg=audit(1309696426.549:110): arch=i386 syscall=socketcall success=yes exit=0 a0=f a1=bff3a330 a2=ad42b0 a3=0 items=0 ppid=6778 pid=6779 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,initrc_t,socket,getopt

audit2allow

#============= pppd_t ==============
allow pppd_t initrc_t:socket getopt;

audit2allow -R

#============= pppd_t ==============
allow pppd_t initrc_t:socket getopt;

Comment 1 Daniel Walsh 2011-07-05 19:54:23 UTC

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