Bug 676716 - SELinux is preventing /usr/sbin/openvpn from 'getattr' accesses on the file /media/Data/ment/pfSense/benti/1/OpenVPN/imre.crt.
Summary: SELinux is preventing /usr/sbin/openvpn from 'getattr' accesses on the file /...
Keywords:
Status: CLOSED DUPLICATE of bug 676715
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:c68cddb57d5...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-10 22:06 UTC by filemon
Modified: 2011-02-11 17:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-11 17:10:25 UTC
Type: ---


Attachments (Terms of Use)

Description filemon 2011-02-10 22:06:38 UTC
SELinux is preventing /usr/sbin/openvpn from 'getattr' accesses on the file /media/Data/ment/pfSense/benti/1/OpenVPN/imre.crt.

*****  Plugin file (36.8 confidence) suggests  *******************************

If you think this is caused by a badly mislabeled machine.
Then you need to fully relabel.
Do
touch /.autorelabel; reboot

*****  Plugin file (36.8 confidence) suggests  *******************************

If you think this is caused by a badly mislabeled machine.
Then you need to fully relabel.
Do
touch /.autorelabel; reboot

*****  Plugin catchall_labels (23.2 confidence) suggests  ********************

If you want to allow openvpn to have getattr access on the imre.crt file
Then you need to change the label on /media/Data/ment/pfSense/benti/1/OpenVPN/imre.crt
Do
# semanage fcontext -a -t FILE_TYPE '/media/Data/ment/pfSense/benti/1/OpenVPN/imre.crt'
where FILE_TYPE is one of the following: cert_type, home_cert_t, etc_runtime_t, sysctl_crypto_t, openct_var_run_t, pcscd_var_run_t, user_cron_spool_t, openvpn_tmp_t, abrt_t, lib_t, openvpn_var_log_t, abrt_helper_exec_t, openvpn_etc_rw_t, system_dbusd_var_lib_t, bin_t, cert_t, ld_so_t, wtmp_t, openvpn_var_run_t, openvpn_exec_t, logfile, textrel_shlib_t, sssd_public_t, locale_t, etc_t, rpm_script_tmp_t, proc_t, sysfs_t, ifconfig_exec_t, krb5_keytab_t, user_tmp_t, krb5_conf_t, sysctl_net_t, rpm_tmp_t, pam_exec_t, shell_exec_t, ld_so_cache_t, openvpn_t, user_home_t, krb5_home_t, updpwd_exec_t, dbusd_etc_t, faillog_t, lastlog_t, proc_net_t, chkpwd_exec_t, samba_var_t, initrc_var_run_t, abrt_var_run_t, net_conf_t, fail2ban_var_lib_t, openvpn_etc_t, sysctl_kernel_t, root_t, krb5_host_rcache_t, security_t, file_context_t. 
Then execute: 
restorecon -v '/media/Data/ment/pfSense/benti/1/OpenVPN/imre.crt'


*****  Plugin catchall (5.04 confidence) suggests  ***************************

If you believe that openvpn should be allowed getattr access on the imre.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                system_u:object_r:file_t:s0
Target Objects                /media/Data/ment/pfSense/benti/1/OpenVPN/imre.crt
                              [ file ]
Source                        openvpn
Source Path                   /usr/sbin/openvpn
Port                          <Ismeretlen>
Host                          (removed)
Source RPM Packages           openvpn-2.1.1-2.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-29.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec
                              23 16:04:50 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    2011. febr. 10., csütörtök, 23.02.17 CET
Last Seen                     2011. febr. 10., csütörtök, 23.02.17 CET
Local ID                      b1aa823b-e87a-4eb4-a9ac-7d633b89bf76

Raw Audit Messages
type=AVC msg=audit(1297375337.63:357): avc:  denied  { getattr } for  pid=18188 comm="openvpn" path="/media/Data/ment/pfSense/benti/1/OpenVPN/imre.crt" dev=sda8 ino=8130041 scontext=system_u:system_r:openvpn_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file


type=SYSCALL msg=audit(1297375337.63:357): arch=x86_64 syscall=fstat success=yes exit=0 a0=5 a1=7fff8289e680 a2=7fff8289e680 a3=7fff8289e560 items=0 ppid=18186 pid=18188 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,file_t,file,getattr

audit2allow

#============= openvpn_t ==============
allow openvpn_t file_t:file getattr;

audit2allow -R

#============= openvpn_t ==============
allow openvpn_t file_t:file getattr;

Comment 1 Daniel Walsh 2011-02-11 17:10:25 UTC

*** This bug has been marked as a duplicate of bug 676715 ***


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