[root@plum ~]# getsebool -a | grep openvpn openvpn_enable_homedirs --> on If I put the certs into ~/<somedir> it works, but I tried ~/.pki/ to match /etc/pki (which also works), and get the below error. Is there a reason to disallow this location for the openvpn cert files? Summary: SELinux is preventing /usr/sbin/openvpn "getattr" access on /home/bbaetz/.pki/vpn01_cacert.pem. Detailed Description: [SELinux is in permissive mode. This access was not denied.] SELinux denied access requested by openvpn. It is not expected that this access is required by openvpn and this access may signal an intrusion attempt. It is also possible that the specific version or configuration of the application is causing it to require additional access. Allowing Access: You can generate a local policy module to allow this access - see FAQ (http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug report. Additional Information: Source Context system_u:system_r:openvpn_t:s0 Target Context unconfined_u:object_r:home_cert_t:s0 Target Objects /home/bbaetz/.pki/vpn01_cacert.pem [ file ] Source openvpn Source Path /usr/sbin/openvpn Port <Unknown> Host (removed) Source RPM Packages openvpn-2.1.1-2.fc12 Target RPM Packages Policy RPM selinux-policy-3.6.32-108.fc12 Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Plugin Name catchall Host Name (removed) Platform Linux (removed) 2.6.32.11-99.fc12.x86_64 #1 SMP Mon Apr 5 19:59:38 UTC 2010 x86_64 x86_64 Alert Count 10 First Seen Sun 21 Mar 2010 21:36:06 EST Last Seen Sun 18 Apr 2010 20:48:55 EST Local ID 1d51120d-b5ae-47bf-899a-3321241de091 Line Numbers Raw Audit Messages node=(removed) type=AVC msg=audit(1271587735.632:422): avc: denied { getattr } for pid=13239 comm="openvpn" path="/home/bbaetz/.pki/vpn01_cacert.pem" dev=dm-3 ino=565334 scontext=system_u:system_r:openvpn_t:s0 tcontext=unconfined_u:object_r:home_cert_t:s0 tclass=file node=(removed) type=SYSCALL msg=audit(1271587735.632:422): arch=c000003e syscall=5 success=yes exit=0 a0=6 a1=7fffd84f4a20 a2=7fffd84f4a20 a3=18 items=0 ppid=13235 pid=13239 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:openvpn_t:s0 key=(null) Hash String generated from catchall,openvpn,openvpn_t,home_cert_t,file,getattr audit2allow suggests: #============= openvpn_t ============== allow openvpn_t home_cert_t:file getattr;
Miroslav add userdom_read_home_certs(openvpn_t)
Fixed in selinux-policy-3.6.32-113.fc12
selinux-policy-3.6.32-113.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-113.fc12
selinux-policy-3.6.32-113.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update selinux-policy'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-113.fc12
selinux-policy-3.6.32-113.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.