Bug 1136574

Summary: SELinux is preventing /usr/sbin/pppd from 'write' accesses on the sock_file .
Product: [Fedora] Fedora Reporter: Andreas LindhĂ© <Lindhe94>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:a20a1c6729af10ece3b3925848d25342e094294ce24d24de1919d5721f43ea76
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-03 09:55:02 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 Andreas Lindhé 2014-09-02 22:28:09 UTC
Description of problem:
Tried to connect to VPN and this popped up.
SELinux is preventing /usr/sbin/pppd from 'write' accesses on the sock_file .

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

If you believe that pppd should be allowed write access on the  sock_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 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:object_r:pppd_var_run_t:s0
Target Objects                 [ sock_file ]
Source                        pppd
Source Path                   /usr/sbin/pppd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ppp-2.4.5-34.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-182.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.15.10-201.fc20.x86_64 #1 SMP Wed
                              Aug 27 21:10:06 UTC 2014 x86_64 x86_64
Alert Count                   10
First Seen                    2014-08-29 11:08:26 CEST
Last Seen                     2014-09-03 00:12:35 CEST
Local ID                      b3e0e242-937c-4209-a3a9-2f1fedad0bfb

Raw Audit Messages
type=AVC msg=audit(1409695955.194:1999): avc:  denied  { write } for  pid=17468 comm="pppd" name="sstpc-nm-sstp-service-17465" dev="tmpfs" ino=370165 scontext=system_u:system_r:pppd_t:s0 tcontext=system_u:object_r:pppd_var_run_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1409695955.194:1999): arch=x86_64 syscall=connect success=no exit=EACCES a0=d a1=7fff5266c870 a2=6e a3=15 items=0 ppid=17465 pid=17468 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,pppd_var_run_t,sock_file,write

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.15.10-201.fc20.x86_64
type:           libreport

Comment 1 Daniel Walsh 2014-09-03 09:55:02 UTC

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