Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 614745 Details for
Bug 858946
selinux blocks write access on /etc/owncloud
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
selinux log
selinuxowncloudetc.txt (text/plain), 7.80 KB, created by
Gregor Tätzner
on 2012-09-20 06:55:10 UTC
(
hide
)
Description:
selinux log
Filename:
MIME Type:
Creator:
Gregor Tätzner
Created:
2012-09-20 06:55:10 UTC
Size:
7.80 KB
patch
obsolete
>SELinux is preventing /usr/sbin/httpd from write access on the directory owncloud. > >***** Plugin catchall_labels (83.8 confidence) suggests ******************** > >If you want to allow httpd to have write access on the owncloud directory >Then you need to change the label on owncloud >Do ># semanage fcontext -a -t FILE_TYPE 'owncloud' >where FILE_TYPE is one of the following: var_log_t, var_lib_t, var_run_t, dirsrv_var_run_t, dirsrv_var_log_t, httpd_var_lib_t, httpd_var_run_t, zarafa_var_lib_t, jetty_var_lib_t, jetty_var_run_t, systemd_passwd_var_run_t, squirrelmail_spool_t, krb5_host_rcache_t, dirsrvadmin_config_t, var_lock_t, tmpfs_t, tmp_t, var_t, abrt_retrace_spool_t, user_tmp_t, jetty_log_t, httpd_tmp_t, httpd_log_t, jetty_cache_t, dirsrv_config_t, dirsrvadmin_tmp_t, httpd_squirrelmail_t, httpd_cache_t, httpd_tmpfs_t, httpd_cvs_ra_content_t, httpd_cvs_rw_content_t, httpd_git_ra_content_t, httpd_git_rw_content_t, httpd_sys_ra_content_t, httpd_sys_rw_content_t, httpd_apcupsd_cgi_ra_content_t, httpd_apcupsd_cgi_rw_content_t, httpd_nagios_ra_content_t, httpd_nagios_rw_content_t, httpd_nutups_cgi_ra_content_t, httpd_nutups_cgi_rw_content_t, httpd_dspam_ra_content_t, httpd_dspam_rw_content_t, httpd_prewikka_ra_content_t, httpd_prewikka_rw_content_t, httpd_mediawiki_ra_content_t, httpd_mediawiki_rw_content_t, httpd_squid_ra_content_t, httpd_squid_rw_content_t, passenger_var_run_t, httpd_smokeping_cgi_ra_content_t, httpd_smokeping_cgi_rw_content_t, httpd_man2html_ra_content_t, httpd_man2html_rw_content_t, httpd_w3c_validator_ra_content_t, httpd_w3c_validator_rw_content_t, httpd_dirsrvadmin_ra_content_t, httpd_dirsrvadmin_rw_content_t, httpd_collectd_ra_content_t, httpd_collectd_rw_content_t, root_t, httpd_zoneminder_ra_content_t, httpd_zoneminder_rw_content_t, httpd_user_ra_content_t, httpd_user_rw_content_t, httpd_awstats_ra_content_t, httpd_awstats_rw_content_t, httpd_cobbler_ra_content_t, httpd_cobbler_rw_content_t, httpd_munin_ra_content_t, httpd_munin_rw_content_t, httpd_mojomojo_ra_content_t, httpd_mojomojo_rw_content_t, httpd_bugzilla_ra_content_t, httpd_bugzilla_rw_content_t. >Then execute: >restorecon -v 'owncloud' > > >***** Plugin catchall (17.1 confidence) suggests *************************** > >If you believe that httpd should be allowed write access on the owncloud directory 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 httpd /var/log/audit/audit.log | audit2allow -M mypol ># semodule -i mypol.pp > >Additional Information: >Source Context system_u:system_r:httpd_t:s0 >Target Context system_u:object_r:etc_t:s0 >Target Objects owncloud [ dir ] >Source httpd >Source Path /usr/sbin/httpd >Port <Unknown> >Host greg-desktop >Source RPM Packages httpd-2.2.22-4.fc17.x86_64 >Target RPM Packages >Policy RPM selinux-policy-3.10.0-146.fc17.noarch >Selinux Enabled True >Policy Type targeted >Enforcing Mode Enforcing >Host Name greg-desktop >Platform Linux greg-desktop 3.5.3-1.fc17.x86_64 #1 SMP Wed > Aug 29 18:46:34 UTC 2012 x86_64 x86_64 >Alert Count 1 >First Seen 2012-09-19 20:30:28 CEST >Last Seen 2012-09-19 20:30:28 CEST >Local ID 4447cf13-118b-4913-b34d-740c262e953c > >Raw Audit Messages >type=AVC msg=audit(1348079428.347:213): avc: denied { write } for pid=14820 comm="httpd" name="owncloud" dev="sda3" ino=115162 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=dir > > >type=SYSCALL msg=audit(1348079428.347:213): arch=x86_64 syscall=access success=no exit=EACCES a0=7f107f1b45c0 a1=2 a2=0 a3=0 items=0 ppid=14816 pid=14820 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm=httpd exe=/usr/sbin/httpd subj=system_u:system_r:httpd_t:s0 key=(null) > >Hash: httpd,httpd_t,etc_t,dir,write > >audit2allow > >#============= httpd_t ============== >#!!!! The source type 'httpd_t' can write to a 'dir' of the following types: ># var_log_t, var_lib_t, var_run_t, dirsrv_var_run_t, dirsrv_var_log_t, httpd_var_lib_t, httpd_var_run_t, zarafa_var_lib_t, jetty_var_lib_t, jetty_var_run_t, systemd_passwd_var_run_t, squirrelmail_spool_t, krb5_host_rcache_t, dirsrvadmin_config_t, var_lock_t, tmpfs_t, tmp_t, var_t, abrt_retrace_spool_t, user_tmp_t, jetty_log_t, httpd_tmp_t, httpd_log_t, jetty_cache_t, dirsrv_config_t, dirsrvadmin_tmp_t, httpd_squirrelmail_t, httpd_cache_t, httpd_tmpfs_t, httpd_cvs_ra_content_t, httpd_cvs_rw_content_t, httpd_git_ra_content_t, httpd_git_rw_content_t, httpd_sys_ra_content_t, httpd_sys_rw_content_t, httpd_apcupsd_cgi_ra_content_t, httpd_apcupsd_cgi_rw_content_t, httpd_nagios_ra_content_t, httpd_nagios_rw_content_t, httpd_nutups_cgi_ra_content_t, httpd_nutups_cgi_rw_content_t, httpd_dspam_ra_content_t, httpd_dspam_rw_content_t, httpd_prewikka_ra_content_t, httpd_prewikka_rw_content_t, httpd_mediawiki_ra_content_t, httpd_mediawiki_rw_content_t, httpd_squid_ra_content_t, httpd_squid_rw_content_t, passenger_var_run_t, httpd_smokeping_cgi_ra_content_t, httpd_smokeping_cgi_rw_content_t, httpd_man2html_ra_content_t, httpd_man2html_rw_content_t, httpd_w3c_validator_ra_content_t, httpd_w3c_validator_rw_content_t, httpd_dirsrvadmin_ra_content_t, httpd_dirsrvadmin_rw_content_t, httpd_collectd_ra_content_t, httpd_collectd_rw_content_t, root_t, httpd_zoneminder_ra_content_t, httpd_zoneminder_rw_content_t, httpd_user_ra_content_t, httpd_user_rw_content_t, httpd_awstats_ra_content_t, httpd_awstats_rw_content_t, httpd_cobbler_ra_content_t, httpd_cobbler_rw_content_t, httpd_munin_ra_content_t, httpd_munin_rw_content_t, httpd_mojomojo_ra_content_t, httpd_mojomojo_rw_content_t, httpd_bugzilla_ra_content_t, httpd_bugzilla_rw_content_t > >allow httpd_t etc_t:dir write; > >audit2allow -R > >#============= httpd_t ============== >#!!!! The source type 'httpd_t' can write to a 'dir' of the following types: ># var_log_t, var_lib_t, var_run_t, dirsrv_var_run_t, dirsrv_var_log_t, httpd_var_lib_t, httpd_var_run_t, zarafa_var_lib_t, jetty_var_lib_t, jetty_var_run_t, systemd_passwd_var_run_t, squirrelmail_spool_t, krb5_host_rcache_t, dirsrvadmin_config_t, var_lock_t, tmpfs_t, tmp_t, var_t, abrt_retrace_spool_t, user_tmp_t, jetty_log_t, httpd_tmp_t, httpd_log_t, jetty_cache_t, dirsrv_config_t, dirsrvadmin_tmp_t, httpd_squirrelmail_t, httpd_cache_t, httpd_tmpfs_t, httpd_cvs_ra_content_t, httpd_cvs_rw_content_t, httpd_git_ra_content_t, httpd_git_rw_content_t, httpd_sys_ra_content_t, httpd_sys_rw_content_t, httpd_apcupsd_cgi_ra_content_t, httpd_apcupsd_cgi_rw_content_t, httpd_nagios_ra_content_t, httpd_nagios_rw_content_t, httpd_nutups_cgi_ra_content_t, httpd_nutups_cgi_rw_content_t, httpd_dspam_ra_content_t, httpd_dspam_rw_content_t, httpd_prewikka_ra_content_t, httpd_prewikka_rw_content_t, httpd_mediawiki_ra_content_t, httpd_mediawiki_rw_content_t, httpd_squid_ra_content_t, httpd_squid_rw_content_t, passenger_var_run_t, httpd_smokeping_cgi_ra_content_t, httpd_smokeping_cgi_rw_content_t, httpd_man2html_ra_content_t, httpd_man2html_rw_content_t, httpd_w3c_validator_ra_content_t, httpd_w3c_validator_rw_content_t, httpd_dirsrvadmin_ra_content_t, httpd_dirsrvadmin_rw_content_t, httpd_collectd_ra_content_t, httpd_collectd_rw_content_t, root_t, httpd_zoneminder_ra_content_t, httpd_zoneminder_rw_content_t, httpd_user_ra_content_t, httpd_user_rw_content_t, httpd_awstats_ra_content_t, httpd_awstats_rw_content_t, httpd_cobbler_ra_content_t, httpd_cobbler_rw_content_t, httpd_munin_ra_content_t, httpd_munin_rw_content_t, httpd_mojomojo_ra_content_t, httpd_mojomojo_rw_content_t, httpd_bugzilla_ra_content_t, httpd_bugzilla_rw_content_t > >allow httpd_t etc_t:dir write; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 858946
: 614745 |
617754
|
706420