| Summary: | SELinux is preventing /usr/sbin/openvpn from 'getattr' accesses on the file /media/Data/ment/pfSense/benti/1/OpenVPN/imre.crt. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | filemon |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 14 | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:c68cddb57d506c139d239ce638f904d899ac705f99034a7548884abab6db69dc | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-02-11 17:10:25 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
*** This bug has been marked as a duplicate of bug 676715 *** |
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;