Bug 787484 - SELinux is preventing /usr/sbin/openvpn from 'read' accesses on the None /home/jordi/Documentos/Claus/OpenVPN/portatil.crt.
Summary: SELinux is preventing /usr/sbin/openvpn from 'read' accesses on the None /hom...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8acd2e2e2873bbef5b88968cd8b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-05 16:44 UTC by Jordi Olivares
Modified: 2012-02-05 19:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-05 19:54:24 UTC
Type: ---


Attachments (Terms of Use)

Description Jordi Olivares 2012-02-05 16:44:40 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.2-1.fc16.x86_64
reason:         SELinux is preventing /usr/sbin/openvpn from 'read' accesses on the None /home/jordi/Documentos/Claus/OpenVPN/portatil.crt.
time:           dom 05 feb 2012 17:44:20 CET

description:
:SELinux is preventing /usr/sbin/openvpn from 'read' accesses on the None /home/jordi/Documentos/Claus/OpenVPN/(removed).crt.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that openvpn should be allowed read access on the (removed).crt <Desconocido> 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/jordi/Documentos/Claus/OpenVPN/(removed).crt
:                              [ None ]
:Source                        openvpn
:Source Path                   /usr/sbin/openvpn
:Port                          <Desconocido>
:Host                          (removed)
:Source RPM Packages           openvpn-2.2.1-2.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.2-1.fc16.x86_64 #1 SMP Thu Jan
:                              26 03:21:58 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    dom 05 feb 2012 17:42:31 CET
:Last Seen                     dom 05 feb 2012 17:42:33 CET
:Local ID                      84ad4346-1bcd-453e-ae2f-725b6dc53e94
:
:Raw Audit Messages
:type=AVC msg=audit(1328460153.98:133): avc:  denied  { read } for  pid=14522 comm="openvpn" name="(removed).crt" dev=sda5 ino=30799 scontext=system_u:system_r:openvpn_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1328460153.098:133): arch=c000003e syscall=2 success=no exit=-13 a0=7fff001e3ec3 a1=0 a2=1b6 a3=238 items=0 ppid=14516 pid=14522 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,None,read
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-05 19:54:24 UTC
The default location for certs is

HOME_DIR/\.cert(/.*)

So either you could move your certs to this directory

$ mv /home/jordi/Documentos/Claus/OpenVPN/(removed).crt /home/jordi/cert
$ restorecon -R -v /home/jordi/.cert


or you could change labeling 

# chcon -R -t home_cert_t /home/jordi/Documentos/Claus/OpenVPN


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