Bug 2179628
| Summary: | httpd's mod_dav has no standard directory for storing files marked httpd_sys_rw_content_t | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Graham Leggett <minfrin> |
| Component: | selinux-policy | Assignee: | Nikola Knazekova <nknazeko> |
| Status: | CLOSED WONTFIX | QA Contact: | Milos Malik <mmalik> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 9.2 | CC: | lvrabec, mmalik, zpytela |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-08-04 14:35:00 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Graham Leggett
2023-03-19 10:04:19 UTC
# rpm -qa mod\* mod_dav_svn-1.14.1-5.el9_0.x86_64 # rpm -ql mod_dav_svn | grep example /usr/share/doc/mod_dav_svn/example.conf # grep /var/www /usr/share/doc/mod_dav_svn/example.conf # containing Subversion repositories, "/var/www/svn". Each repository # # cd /var/www/svn # SVNParentPath /var/www/svn Here is a way how to set up a SELinux equivalency between /var/www/svn and /var/www/dav locations: # matchpathcon /var/www/svn /var/www/svn system_u:object_r:httpd_sys_rw_content_t:s0 # matchpathcon /var/www/dav /var/www/dav system_u:object_r:httpd_sys_content_t:s0 # semanage fcontext -l | grep /var/www/dav # semanage fcontext -l | grep /var/www/svn /var/www/svn(/.*)? all files system_u:object_r:httpd_sys_rw_content_t:s0 /var/www/svn/conf(/.*)? all files system_u:object_r:httpd_sys_content_t:s0 /var/www/svn/hooks(/.*)? all files system_u:object_r:httpd_sys_script_exec_t:s0 # semanage fcontext -a -e /var/www/svn /var/www/dav # semanage fcontext -l | grep /var/www/dav /var/www/dav = /var/www/svn # matchpathcon /var/www/svn /var/www/svn system_u:object_r:httpd_sys_rw_content_t:s0 # matchpathcon /var/www/dav /var/www/dav system_u:object_r:httpd_sys_rw_content_t:s0 # Let us know if this approach helped to solve your issue. Thank you. (In reply to Milos Malik from comment #1) > Let us know if this approach helped to solve your issue. The issue is that this should work out the box, without me doing anything weird or non-standard. Hi, this bug will be closed as wontfix, because the path /var/www/dav is not defined in the official apache documentation. |