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 706420 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.
2. avc /etc/owncloud/mount.php
avc-owncloud.txt (text/plain), 8.09 KB, created by
Gregor Tätzner
on 2013-03-07 08:43:01 UTC
(
hide
)
Description:
2. avc /etc/owncloud/mount.php
Filename:
MIME Type:
Creator:
Gregor Tätzner
Created:
2013-03-07 08:43:01 UTC
Size:
8.09 KB
patch
obsolete
>SELinux is preventing /usr/sbin/httpd from write access on the directory /etc/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 /etc/owncloud >Do ># semanage fcontext -a -t FILE_TYPE '/etc/owncloud' >where FILE_TYPE is one of the following: 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, var_log_t, var_lib_t, var_run_t, dirsrv_var_run_t, httpd_var_lib_t, httpd_var_run_t, dirsrv_var_log_t, passenger_tmp_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_openshift_ra_content_t, httpd_openshift_rw_content_t, httpd_dirsrvadmin_ra_content_t, httpd_dirsrvadmin_rw_content_t, httpd_collectd_ra_content_t, httpd_collectd_rw_content_t, httpd_user_ra_content_t, httpd_user_rw_content_t, httpd_zoneminder_ra_content_t, httpd_zoneminder_rw_content_t, httpd_cobbler_ra_content_t, httpd_cobbler_rw_content_t, httpd_awstats_ra_content_t, httpd_awstats_rw_content_t, httpd_munin_ra_content_t, httpd_munin_rw_content_t, httpd_mojomojo_ra_content_t, httpd_mojomojo_rw_content_t, root_t, httpd_bugzilla_ra_content_t, httpd_bugzilla_rw_content_t. >Then execute: >restorecon -v '/etc/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 /etc/owncloud [ dir ] >Source httpd >Source Path /usr/sbin/httpd >Port <Unknown> >Host greg-desktop >Source RPM Packages httpd-2.2.23-1.fc17.x86_64 >Target RPM Packages owncloud-4.5.7-2.fc17.noarch >Policy RPM selinux-policy-3.10.0-167.fc17.noarch >Selinux Enabled True >Policy Type targeted >Enforcing Mode Enforcing >Host Name greg-desktop >Platform Linux greg-desktop 3.7.9-104.fc17.x86_64 #1 SMP > Sun Feb 24 19:19:12 UTC 2013 x86_64 x86_64 >Alert Count 2 >First Seen 2013-03-07 09:33:07 CET >Last Seen 2013-03-07 09:33:17 CET >Local ID 237aaa5a-785c-449b-967d-5a6a6cca81cb > >Raw Audit Messages >type=AVC msg=audit(1362645197.426:293): avc: denied { write } for pid=11927 comm="httpd" name="owncloud" dev="sda3" ino=238465 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=dir > > >type=SYSCALL msg=audit(1362645197.426:293): arch=x86_64 syscall=open success=no exit=EACCES a0=7f4ef6e57648 a1=241 a2=1b6 a3=10 items=0 ppid=1227 pid=11927 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 ses=4294967295 tty=(none) 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: ># 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, var_log_t, var_lib_t, var_run_t, dirsrv_var_run_t, httpd_var_lib_t, httpd_var_run_t, dirsrv_var_log_t, passenger_tmp_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_openshift_ra_content_t, httpd_openshift_rw_content_t, httpd_dirsrvadmin_ra_content_t, httpd_dirsrvadmin_rw_content_t, httpd_collectd_ra_content_t, httpd_collectd_rw_content_t, httpd_user_ra_content_t, httpd_user_rw_content_t, httpd_zoneminder_ra_content_t, httpd_zoneminder_rw_content_t, httpd_cobbler_ra_content_t, httpd_cobbler_rw_content_t, httpd_awstats_ra_content_t, httpd_awstats_rw_content_t, httpd_munin_ra_content_t, httpd_munin_rw_content_t, httpd_mojomojo_ra_content_t, httpd_mojomojo_rw_content_t, root_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: ># 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, var_log_t, var_lib_t, var_run_t, dirsrv_var_run_t, httpd_var_lib_t, httpd_var_run_t, dirsrv_var_log_t, passenger_tmp_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_openshift_ra_content_t, httpd_openshift_rw_content_t, httpd_dirsrvadmin_ra_content_t, httpd_dirsrvadmin_rw_content_t, httpd_collectd_ra_content_t, httpd_collectd_rw_content_t, httpd_user_ra_content_t, httpd_user_rw_content_t, httpd_zoneminder_ra_content_t, httpd_zoneminder_rw_content_t, httpd_cobbler_ra_content_t, httpd_cobbler_rw_content_t, httpd_awstats_ra_content_t, httpd_awstats_rw_content_t, httpd_munin_ra_content_t, httpd_munin_rw_content_t, httpd_mojomojo_ra_content_t, httpd_mojomojo_rw_content_t, root_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