Bug 1452560
| Summary: | tomcat_t spacewalk_log_t SELinux denials on RHEL 7.4 | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Ales Dujicek <adujicek> |
| Component: | Server | Assignee: | Michael Mráka <mmraka> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.6 | CC: | chalal, eherget, mmalik, mmraka, pstudeni |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-09-27 19:34:22 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1484117 | ||
|
Description
Ales Dujicek
2017-05-19 08:20:05 UTC
BZ#1451318 mentions following rule: allow tomcat_t spacewalk_data_t:dir search; but spacewalk_data_t is not defined in selinux-policy either # rpm -qa selinux-policy\* selinux-policy-3.13.1-162.el7.noarch selinux-policy-targeted-3.13.1-162.el7.noarch selinux-policy-devel-3.13.1-162.el7.noarch # seinfo -tspacewalk_log_t ERROR: could not find datum for type spacewalk_log_t # seinfo -tspacewalk_data_t ERROR: could not find datum for type spacewalk_data_t # Therefore the spacewalk-selinux package should bring the above-mentioned rule too. The latest nightly packages now appear to define spacewalk_log_t and spacewalk_data_t.
# rpm -qa | grep selinux-policy
selinux-policy-3.13.1-166.el7.noarch
selinux-policy-devel-3.13.1-166.el7.noarch
selinux-policy-targeted-3.13.1-166.el7.noarch
# seinfo -tspacewalk_log_t
spacewalk_log_t
# seinfo -tspacewalk_data_t
spacewalk_data_t
#
However audit2allow -a still reports:
#============= tomcat_t ==============
allow tomcat_t spacewalk_log_t:dir { getattr search };
I'm not real familiar with defining selinux policy rules. I suspect this rule should get added to spacewalk.te at line 35, just below:
allow httpd_t spacewalk_install_log_t:file { append ioctl };
allow restorecon_t spacewalk_install_log_t:file { append };
But I'd like someone to confirm that before I make such a change.
Fixed in spacewalk.git by
commit fad5b4efc950689191cb31053213807f9e24a8e9
1452560 - allow tomcat to access spacewalk logs
Spacewalk 2.7 has been released. https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27 |