Bug 790451 - SELinux is preventing /usr/sbin/openvpn from 'open' accesses on the None ROOT-NTUA-cacert.crt.
Summary: SELinux is preventing /usr/sbin/openvpn from 'open' accesses on the None ROOT...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d0be4b1e86af07e091bca5da9ef...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-14 15:04 UTC by cstent
Modified: 2012-02-15 14:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-15 14:09:18 UTC
Type: ---


Attachments (Terms of Use)

Description cstent 2012-02-14 15:04:59 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.5-3.fc16.i686
reason:         SELinux is preventing /usr/sbin/openvpn from 'open' accesses on the None ROOT-NTUA-cacert.crt.
time:           Tue 14 Feb 2012 17:04:48 EET

description:
:SELinux is preventing /usr/sbin/openvpn from 'open' accesses on the None ROOT-NTUA-cacert.crt.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that openvpn should be allowed open access on the ROOT-NTUA-cacert.crt <Unknown> 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                ROOT-NTUA-cacert.crt [ None ]
:Source                        openvpn
:Source Path                   /usr/sbin/openvpn
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           openvpn-2.2.1-2.fc16.i686
: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.5-3.fc16.i686 #1 SMP Thu Feb 9
:                              02:24:08 UTC 2012 i686 i686
:Alert Count                   8
:First Seen                    Tue 14 Feb 2012 15:11:51 EET
:Last Seen                     Tue 14 Feb 2012 17:01:15 EET
:Local ID                      309d6b98-7d7a-43ec-8cf6-f52834ed768b
:
:Raw Audit Messages
:type=AVC msg=audit(1329231675.455:61): avc:  denied  { open } for  pid=1762 comm="openvpn" name="ROOT-NTUA-cacert.crt" dev=dm-2 ino=8657738 scontext=system_u:system_r:openvpn_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1329231675.455:61): arch=40000003 syscall=5 success=no exit=-13 a0=bfa71ef4 a1=8000 a2=1b6 a3=0 items=0 ppid=1757 pid=1762 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,open
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-15 14:09:18 UTC
Updated setroubleshoot will tell you


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

If you want to mv ROOT-NTUA-cacert.crt to standard location so that openvpn can have open access
Then you must move the cert file to the ~/.cert directory
Do
# mv ROOT-NTUA-cacert.crt ~/.cert
# restorecon -R -v ~/.cert


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

If you want to modify the label on ROOT-NTUA-cacert.crt so that openvpn can have open access on it
Then you must fix the labels.
Do
# semanage fcontext -a -t home_cert_t ROOT-NTUA-cacert.crt
# restorecon -R -v ROOT-NTUA-cacert.crt


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