Bug 766112

Summary: SELinux is preventing /usr/sbin/openvpn from 'read' accesses on the file /home/michael/openvpn/mikeboxx/2F2DBE1818F2540E.pem.
Product: [Fedora] Fedora Reporter: Michael <michael>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl, michael
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard: abrt_hash:2caf2b38f53e344c482c1d538ccfb8c10b996155b173a524c52bf4a7f53e3999
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-12 12:39:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: description none

Description Michael 2011-12-10 08:39:47 UTC
libreport version: 2.0.7
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.4-1.fc16.i686
reason:         SELinux is preventing /usr/sbin/openvpn from 'read' accesses on the file /home/michael/openvpn/mikeboxx/2F2DBE1818F2540E.pem.
time:           Sa 10 Dez 2011 09:39:30 CET

description:    Text file, 2834 bytes

Comment 1 Michael 2011-12-10 08:39:50 UTC
Created attachment 544851 [details]
File: description

Comment 2 Michael 2011-12-10 08:44:45 UTC
i have more than one VPN. in fc15 works all fine. i make on the same hardware a new (fresh) install of fc16 - no (more) VPN works...

Comment 3 Miroslav Grepl 2011-12-12 12:39:13 UTC
SELinux expects the cert files to be labelled home_cert_t, if you copy them to
~/.pki or ~/.cert they will be labeled as home_cert_t.

If not, then run restorecon on them in one of those directories.

If you want to keep them in your location, you need to execute

# restorecon -R -v  /home/michael/openvpn
# chcon -R -t home_cert_t /home/michael/openvpn/mikeboxx