Bug 1942872
Summary: | SELinux prevents arpwatch from creating netlink generic sockets | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Milos Malik <mmalik> |
Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 34 | CC: | dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, plautrba, vmojzis, zpytela |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.14.7-28.fc34 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-03-29 00:17:11 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
Milos Malik
2021-03-25 09:04:18 UTC
Caught in permissive mode: ---- type=PROCTITLE msg=audit(03/25/2021 05:05:33.539:477) : proctitle=/usr/sbin/arpwatch -u arpwatch -F -C type=SYSCALL msg=audit(03/25/2021 05:05:33.539:477) : arch=x86_64 syscall=socket success=yes exit=3 a0=netlink a1=SOCK_RAW a2=chaos a3=0x561ec5888830 items=0 ppid=1 pid=61027 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=arpwatch exe=/usr/sbin/arpwatch subj=system_u:system_r:arpwatch_t:s0 key=(null) type=AVC msg=audit(03/25/2021 05:05:33.539:477) : avc: denied { create } for pid=61027 comm=arpwatch scontext=system_u:system_r:arpwatch_t:s0 tcontext=system_u:system_r:arpwatch_t:s0 tclass=netlink_generic_socket permissive=1 ---- type=PROCTITLE msg=audit(03/25/2021 05:05:33.540:478) : proctitle=/usr/sbin/arpwatch -u arpwatch -F -C type=SYSCALL msg=audit(03/25/2021 05:05:33.540:478) : arch=x86_64 syscall=ioctl success=no exit=ENODEV(No such device) a0=0x3 a1=SIOCGIFNAME a2=0x7fff0226dfc0 a3=0x561ec5888830 items=0 ppid=1 pid=61027 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=arpwatch exe=/usr/sbin/arpwatch subj=system_u:system_r:arpwatch_t:s0 key=(null) type=AVC msg=audit(03/25/2021 05:05:33.540:478) : avc: denied { ioctl } for pid=61027 comm=arpwatch path=socket:[68487] dev="sockfs" ino=68487 ioctlcmd=SIOCGIFNAME scontext=system_u:system_r:arpwatch_t:s0 tcontext=system_u:system_r:arpwatch_t:s0 tclass=netlink_generic_socket permissive=1 ---- I've submitted a Fedora PR to address the issue: https://github.com/fedora-selinux/selinux-policy/pull/661 I was unable to reproduce the cgroup search though, neither in permissive nor enforcing modes. Merged in rawhide. FEDORA-2021-15b81d905c has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-15b81d905c FEDORA-2021-15b81d905c has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-15b81d905c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-15b81d905c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-15b81d905c has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report. |