Description of problem: Running OpenVPN NetworkManager plugin. It only seems to work if I disable SELinux. Additional info: libreport version: 2.0.18 kernel: 3.6.6-1.fc17.x86_64 description: :SELinux is preventing /usr/sbin/openvpn from 'name_bind' accesses on the tcp_socket . : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that openvpn should be allowed name_bind access on the 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 openvpn /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:NetworkManager_t:s0 :Target Context system_u:object_r:openvpn_port_t:s0 :Target Objects [ tcp_socket ] :Source openvpn :Source Path /usr/sbin/openvpn :Port 1194 :Host (removed) :Source RPM Packages openvpn-2.2.2-7.fc17.x86_64 :Target RPM Packages :Policy RPM selinux-policy-3.10.0-159.fc17.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.6.6-1.fc17.x86_64 #1 SMP Mon Nov : 5 21:59:35 UTC 2012 x86_64 x86_64 :Alert Count 3 :First Seen 2012-11-15 10:28:00 GMT :Last Seen 2012-11-15 13:24:58 GMT :Local ID 77fc76ad-9b36-4a5d-9441-9ce7f8f16c6f : :Raw Audit Messages :type=AVC msg=audit(1352985898.827:224): avc: denied { name_bind } for pid=15568 comm="openvpn" src=1194 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:object_r:openvpn_port_t:s0 tclass=tcp_socket : : :type=SYSCALL msg=audit(1352985898.827:224): arch=x86_64 syscall=bind success=no exit=EACCES a0=4 a1=7fedbd7ce930 a2=10 a3=7fff2805e60c items=0 ppid=3497 pid=15568 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=openvpn exe=/usr/sbin/openvpn subj=system_u:system_r:NetworkManager_t:s0 key=(null) : :Hash: openvpn,NetworkManager_t,openvpn_port_t,tcp_socket,name_bind : :audit2allow : :#============= NetworkManager_t ============== :#!!!! This avc is allowed in the current policy : :allow NetworkManager_t openvpn_port_t:tcp_socket name_bind; : :audit2allow -R : :#============= NetworkManager_t ============== :#!!!! This avc is allowed in the current policy : :allow NetworkManager_t openvpn_port_t:tcp_socket name_bind; :
Created attachment 645629 [details] File: type
Created attachment 645630 [details] File: hashmarkername
Did you set up NetworkManager to run openvpn?
Looks like this is fixed in the latest policy yum -y update