Bug 1465031
Summary: | init denied to read modprobe.d | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Karel Volný <kvolny> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED DUPLICATE | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.4 | CC: | aloughla, atragler, baumanmo, egarver, iptables-maint-list, kvolny, lvrabec, mgrepl, mmalik, plautrba, psutter, rkhan, ssekidde, sukulkar, todoleza, trevor.hemsley |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-09-07 16:33:41 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: | 1470965, 1472751 |
Description
Karel Volný
2017-06-26 12:56:37 UTC
Have you tried to relabel modprobe.d with "restorecon -rvF /etc/modprobe.d"? granting qa_ack for 7.5; RPL I am also seeing this - on each reboot I get 6 selinux denials logged in my audit.log - one for each file in /etc/modprobe.d/*.conf. The code in question comes from line 212 in /usr/libexec/iptables/iptables.init where it is trying to determine if ipv6 has been disabled. Files in /etc/modprobe.d/*.conf look correctly labeled to me and restorecon -RvF /etc/modprobe.d returns no output showing that it made no changes - thus answering the question about trying the relabel. type=AVC msg=audit(1504094765.370:28): avc: denied { read } for pid=661 comm="grep" name="blacklist-iscsi.conf" dev="dm-0" ino=782889 scontext=system_u:system_r:iptables_t:s0 tcontext=system_u:object_r:modules_conf_t:s0 tclass=file Problem only happens when iptables.service is started by systemd as part of the boot. If you run systemctl restart iptables then nothing is logged. Running the AVCs through audit2allow generates: require { type iptables_t; type modules_conf_t; class file read; } #============= iptables_t ============== allow iptables_t modules_conf_t:file read; So this seems like just a case of missing selinux policy, therefore moving this ticket to selinux-policy component. I believe this bug is a duplicate of BZ#1438937. (In reply to Milos Malik from comment #8) > I believe this bug is a duplicate of BZ#1438937. Yes, indeed. Thanks for spotting it! *** This bug has been marked as a duplicate of bug 1438937 *** |