This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 995135 - SELinux is preventing /usr/sbin/openvpn from 'name_connect' accesses on the tcp_socket .
SELinux is preventing /usr/sbin/openvpn from 'name_connect' accesses on the t...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-08-08 11:32 EDT by Peter Ludikovsky
Modified: 2013-08-21 20:54 EDT (History)
3 users (show)

See Also:
Fixed In Version: selinux-policy-3.12.1-71.fc19
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-08-21 20:54:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Peter Ludikovsky 2013-08-08 11:32:10 EDT
Description of problem:
Tried to connect a VPN via an HTTP Proxy
SELinux is preventing /usr/sbin/openvpn from 'name_connect' accesses on the tcp_socket .

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

If sie denken, dass es openvpn standardmässig erlaubt sein sollte, name_connect Zugriff auf  tcp_socket zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# grep openvpn /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:openvpn_t:s0
Target Context                system_u:object_r:squid_port_t:s0
Target Objects                 [ tcp_socket ]
Source                        openvpn
Source Path                   /usr/sbin/openvpn
Port                          3128
Host                          (removed)
Source RPM Packages           openvpn-2.3.2-1.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-69.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.10.4-300.fc19.x86_64 #1 SMP Tue
                              Jul 30 11:29:05 UTC 2013 x86_64 x86_64
Alert Count                   9
First Seen                    2013-08-08 17:20:53 CEST
Last Seen                     2013-08-08 17:21:33 CEST
Local ID                      29858f34-6113-43f7-903b-42287e746783

Raw Audit Messages
type=AVC msg=audit(1375975293.385:197): avc:  denied  { name_connect } for  pid=2296 comm="openvpn" dest=3128 scontext=system_u:system_r:openvpn_t:s0 tcontext=system_u:object_r:squid_port_t:s0 tclass=tcp_socket

type=SYSCALL msg=audit(1375975293.385:197): arch=x86_64 syscall=connect success=no exit=EACCES a0=6 a1=7fff06364da8 a2=10 a3=3 items=0 ppid=2292 pid=2296 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=openvpn exe=/usr/sbin/openvpn subj=system_u:system_r:openvpn_t:s0 key=(null)

Hash: openvpn,openvpn_t,squid_port_t,tcp_socket,name_connect

Additional info:
reporter:       libreport-2.1.6
hashmarkername: setroubleshoot
kernel:         3.10.4-300.fc19.x86_64
type:           libreport
Comment 1 Daniel Walsh 2013-08-09 08:37:24 EDT
Is this a default config?
Comment 2 Peter Ludikovsky 2013-08-09 09:00:49 EDT
Yes, regular install, no Policy modifications. nm-applet supports setting an HTTP proxy for OpenVPN connections so I thought I'd try.
Comment 3 Daniel Walsh 2013-08-13 18:46:58 EDT
6b0fe30dff89f947e66230eddac68f6c8fac6733 fixes this in git.
Comment 4 Fedora Update System 2013-08-20 04:27:05 EDT
selinux-policy-3.12.1-71.fc19 has been submitted as an update for Fedora 19.
Comment 5 Fedora Update System 2013-08-20 20:16:03 EDT
Package selinux-policy-3.12.1-71.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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.12.1-71.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 6 Fedora Update System 2013-08-21 20:54:00 EDT
selinux-policy-3.12.1-71.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

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