Bug 849784 - SELinux is preventing /usr/sbin/openvpn from 'open' accesses on the file /home/jean-dominique/VPN/pxd4370.crt.
Summary: SELinux is preventing /usr/sbin/openvpn from 'open' accesses on the file /hom...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:46b2b84a95888552442542dec77...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-20 20:49 UTC by jdseris
Modified: 2012-08-21 07:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-21 07:53:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description jdseris 2012-08-20 20:49:42 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.5.2-1.fc17.x86_64
time:           lun. 20 août 2012 22:49:00 CEST

description:
:SELinux is preventing /usr/sbin/openvpn from 'open' accesses on the file /home/jean-dominique/VPN/pxd4370.crt.
:
:*****  Plugin openvpn (47.5 confidence) suggests  ****************************
:
:If you want to mv pxd4370.crt to standard location so that openvpn can have open access
:Then you must move the cert file to the ~/.cert directory
:Do
:# mv /home/jean-dominique/VPN/pxd4370.crt ~/.cert
:# restorecon -R -v ~/.cert
:
:
:*****  Plugin openvpn (47.5 confidence) suggests  ****************************
:
:If you want to modify the label on pxd4370.crt so that openvpn can have open access on it
:Then you must fix the labels.
:Do
:# semanage fcontext -a -t home_cert_t /home/jean-dominique/VPN/pxd4370.crt
:# restorecon -R -v /home/jean-dominique/VPN/pxd4370.crt
:
:
:*****  Plugin catchall (6.38 confidence) suggests  ***************************
:
:If you believe that openvpn should be allowed open access on the pxd4370.crt file 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:openvpn_t:s0
:Target Context                unconfined_u:object_r:user_home_t:s0
:Target Objects                /home/jean-dominique/VPN/pxd4370.crt [ file ]
:Source                        openvpn
:Source Path                   /usr/sbin/openvpn
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           openvpn-2.2.2-4.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-145.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.5.2-1.fc17.x86_64 #1 SMP Wed Aug
:                              15 16:09:27 UTC 2012 x86_64 x86_64
:Alert Count                   8
:First Seen                    2012-08-20 21:59:05 CEST
:Last Seen                     2012-08-20 22:46:30 CEST
:Local ID                      7ca32061-e88a-46b1-9011-2840cf10d5a2
:
:Raw Audit Messages
:type=AVC msg=audit(1345495590.92:71): avc:  denied  { open } for  pid=1428 comm="openvpn" path="/home/jean-dominique/VPN/pxd4370.crt" dev="sda5" ino=10748269 scontext=system_u:system_r:openvpn_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1345495590.92:71): arch=x86_64 syscall=open success=no exit=EACCES a0=7fff37c4cefb a1=0 a2=1b6 a3=238 items=0 ppid=1426 pid=1428 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: openvpn,openvpn_t,user_home_t,file,open
:
:audit2allow
:
:#============= openvpn_t ==============
:allow openvpn_t user_home_t:file open;
:
:audit2allow -R
:
:#============= openvpn_t ==============
:allow openvpn_t user_home_t:file open;
:

Comment 1 Miroslav Grepl 2012-08-21 07:53:50 UTC
The alert tells you what to do.

:If you want to mv pxd4370.crt to standard location so that openvpn can have open ccess
Then you must move the cert file to the ~/.cert directory
Do
# mv /home/jean-dominique/VPN/pxd4370.crt ~/.cert
# restorecon -R -v ~/.cert



*****  Plugin openvpn (47.5 confidence) suggests  ****************************

If you want to modify the label on pxd4370.crt so that openvpn can have open access on it
Then you must fix the labels.
Do
# semanage fcontext -a -t home_cert_t /home/jean-dominique/VPN/pxd4370.crt
# restorecon -R -v /home/jean-dominique/VPN/pxd4370.crt


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