Quantcast
Viewing all articles
Browse latest Browse all 19115

0005877: openvpn & openvpn-auth-pam.so & pam_mysql.so

I install openvpn 2.2.2 with Centos 6.2 x86_64 with rpm of rpmforge and try to use pam_mysql to authorize.<br /> <br /> When setenforce to Pemissive everything is working fine.<br /> <br /> but setenforce to Enforcing the auth is failed.<br /> <br /> the follow is the audit.log when selinux is enforcing.<br /> <br /> type=USER_AUTH msg=audit(1344179409.867:467): user pid=22457 uid=0 auid=0 ses=2 subj=unconfined_u:system_r:openvpn_t:s0 msg='op=PAM:authentication acct="test" exe="/usr/sbin/openvpn" hostname=? addr=? terminal=pts/0 res=failed'<br /> <br /> and the follow is the audit.log when selinux is permissive<br /> <br /> type=AVC msg=audit(1344179630.870:469): avc: denied { search } for pid=22457 comm="openvpn" name="mysql" dev=dm-0 ino=662989 scontext=unconfined_u:system_r:openvpn_t:s0 tcontext=system_u:object_r:mysqld_db_t:s0 tclass=dir<br /> type=AVC msg=audit(1344179630.870:469): avc: denied { write } for pid=22457 comm="openvpn" name="mysql.sock" dev=dm-0 ino=663229 scontext=unconfined_u:system_r:openvpn_t:s0 tcontext=unconfined_u:object_r:mysqld_var_run_t:s0 tclass=sock_file<br /> type=AVC msg=audit(1344179630.870:469): avc: denied { connectto } for pid=22457 comm="openvpn" path="/var/lib/mysql/mysql.sock" scontext=unconfined_u:system_r:openvpn_t:s0 tcontext=unconfined_u:system_r:mysqld_t:s0 tclass=unix_stream_socket<br /> type=SYSCALL msg=audit(1344179630.870:469): arch=c000003e syscall=42 success=yes exit=0 a0=3 a1=7fff864c82b0 a2=6e a3=4000 items=0 ppid=1 pid=22457 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 comm="openvpn" exe="/usr/sbin/openvpn" subj=unconfined_u:system_r:openvpn_t:s0 key=(null)<br /> type=AVC msg=audit(1344179630.876:470): avc: denied { getattr } for pid=22457 comm="openvpn" path="/usr/share/mysql/charsets/Index.xml" dev=dm-0 ino=532026 scontext=unconfined_u:system_r:openvpn_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file<br /> type=SYSCALL msg=audit(1344179630.876:470): arch=c000003e syscall=4 success=yes exit=0 a0=7fff864c71d0 a1=7fff864c7110 a2=7fff864c7110 a3=ff8 items=0 ppid=1 pid=22457 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 comm="openvpn" exe="/usr/sbin/openvpn" subj=unconfined_u:system_r:openvpn_t:s0 key=(null)<br /> type=AVC msg=audit(1344179630.876:471): avc: denied { read } for pid=22457 comm="openvpn" name="Index.xml" dev=dm-0 ino=532026 scontext=unconfined_u:system_r:openvpn_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file<br /> type=AVC msg=audit(1344179630.876:471): avc: denied { open } for pid=22457 comm="openvpn" name="Index.xml" dev=dm-0 ino=532026 scontext=unconfined_u:system_r:openvpn_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file<br /> type=SYSCALL msg=audit(1344179630.876:471): arch=c000003e syscall=2 success=yes exit=6 a0=7fff864c71d0 a1=0 a2=1b0 a3=4755 items=0 ppid=1 pid=22457 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 comm="openvpn" exe="/usr/sbin/openvpn" subj=unconfined_u:system_r:openvpn_t:s0 key=(null)<br /> type=USER_AUTH msg=audit(1344179630.887:472): user pid=22457 uid=0 auid=0 ses=2 subj=unconfined_u:system_r:openvpn_t:s0 msg='op=PAM:authentication acct="test" exe="/usr/sbin/openvpn" hostname=? addr=? terminal=pts/0 res=success'<br /> type=USER_ACCT msg=audit(1344179630.895:473): user pid=22457 uid=0 auid=0 ses=2 subj=unconfined_u:system_r:openvpn_t:s0 msg='op=PAM:accounting acct="test" exe="/usr/sbin/openvpn" hostname=? addr=? terminal=pts/0 res=success'

Viewing all articles
Browse latest Browse all 19115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>