Bug 744303

Summary: SELinux is preventing /usr/sbin/pptp from 'name_connect' accesses on the tcp_socket port 1723.
Product: [Fedora] Fedora Reporter: Maciek Borzecki <maciek.borzecki>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA 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:3711053c26aa4adb109ae08ba81b98100418723161051344ed9b56bb557d1ffa
Fixed In Version: selinux-policy-3.10.0-40.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-19 04:31:28 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 Maciek Borzecki 2011-10-07 19:38:06 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-0.rc8.git0.1.fc16.i686
reason:         SELinux is preventing /usr/sbin/pptp from 'name_connect' accesses on the tcp_socket port 1723.
time:           Fri Oct  7 21:37:34 2011

description:
:SELinux is preventing /usr/sbin/pptp from 'name_connect' accesses on the tcp_socket port 1723.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that pptp should be allowed name_connect access on the port 1723 tcp_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 pptpcm /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:pptp_t:s0
:Target Context                system_u:object_r:unreserved_port_t:s0
:Target Objects                port 1723 [ tcp_socket ]
:Source                        pptpcm
:Source Path                   /usr/sbin/pptp
:Port                          1723
:Host                          (removed)
:Source RPM Packages           pptp-1.7.2-12.fc15
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-36.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.0-0.rc8.git0.1.fc16.i686 #1 SMP
:                              Tue Oct 4 04:11:07 UTC 2011 i686 i686
:Alert Count                   1
:First Seen                    Fri 07 Oct 2011 09:33:05 PM CEST
:Last Seen                     Fri 07 Oct 2011 09:33:05 PM CEST
:Local ID                      179c7b96-7bbf-4b53-9bbb-55fa1a11d7f3
:
:Raw Audit Messages
:type=AVC msg=audit(1318015985.238:338): avc:  denied  { name_connect } for  pid=10427 comm="pptpcm" dest=1723 scontext=system_u:system_r:pptp_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=tcp_socket
:
:
:type=SYSCALL msg=audit(1318015985.238:338): arch=i386 syscall=socketcall success=no exit=EACCES a0=3 a1=bfde4300 a2=0 a3=0 items=0 ppid=10424 pid=10427 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=pptpcm exe=/usr/sbin/pptp subj=system_u:system_r:pptp_t:s0 key=(null)
:
:Hash: pptpcm,pptp_t,unreserved_port_t,tcp_socket,name_connect
:
:audit2allow
:
:#============= pptp_t ==============
:allow pptp_t unreserved_port_t:tcp_socket name_connect;
:
:audit2allow -R
:
:#============= pptp_t ==============
:allow pptp_t unreserved_port_t:tcp_socket name_connect;
:

Comment 1 Maciek Borzecki 2011-10-07 19:39:28 UTC
Happens every time I try to VPN into office. IIRC it used to work in F15.

Comment 2 Miroslav Grepl 2011-10-10 10:18:19 UTC
Fixed in selinux-policy-3.10.0-39.fc16

Comment 3 Daniel Walsh 2011-10-11 17:18:21 UTC
Miroslav how did you fix this?  Why not add a label for pptp_port_t?

grep pptp /etc/services 
pptp            1723/tcp                # pptp
pptp            1723/udp                # pptp

Comment 4 Miroslav Grepl 2011-10-11 18:38:17 UTC
Fixed in -40.fc16 release.

Comment 5 Fedora Update System 2011-10-14 16:18:16 UTC
selinux-policy-3.10.0-40.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-40.fc16

Comment 6 Fedora Update System 2011-10-15 14:31:58 UTC
Package selinux-policy-3.10.0-40.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-40.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-14363
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2011-10-19 04:31:28 UTC
selinux-policy-3.10.0-40.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.