Bug 2101866 - SELinux is preventing systemd-resolve from 'ioctl' accesses on the unix_dgram_socket unix_dgram_socket.
Summary: SELinux is preventing systemd-resolve from 'ioctl' accesses on the unix_dgram...
Keywords:
Status: CLOSED DUPLICATE of bug 2093155
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 36
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9b25b2422315fa598256ccf635b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-28 14:58 UTC by ssitani
Modified: 2022-06-28 15:28 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-06-28 15:28:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description ssitani 2022-06-28 14:58:00 UTC
Description of problem:
SELinux is preventing systemd-resolve from 'ioctl' accesses on the unix_dgram_socket unix_dgram_socket.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that systemd-resolve should be allowed ioctl access on the unix_dgram_socket unix_dgram_socket 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:
# ausearch -c 'systemd-resolve' --raw | audit2allow -M my-systemdresolve
# semodule -X 300 -i my-systemdresolve.pp

Additional Information:
Source Context                system_u:system_r:NetworkManager_dispatcher_custom
                              _t:s0
Target Context                system_u:system_r:NetworkManager_dispatcher_custom
                              _t:s0
Target Objects                unix_dgram_socket [ unix_dgram_socket ]
Source                        systemd-resolve
Source Path                   systemd-resolve
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-36.10-1.fc36.noarch
Local Policy RPM              selinux-policy-targeted-36.10-1.fc36.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.17.13-300.fc36.x86_64 #1 SMP
                              PREEMPT Mon Jun 6 14:29:43 UTC 2022 x86_64 x86_64
Alert Count                   127
First Seen                    2022-06-14 14:31:52 CEST
Last Seen                     2022-06-28 16:53:32 CEST
Local ID                      5c12aaea-6bb8-46f6-9b21-5ebe0ed12844

Raw Audit Messages
type=AVC msg=audit(1656428012.675:1422): avc:  denied  { ioctl } for  pid=979593 comm="systemd-resolve" path="socket:[52255122]" dev="sockfs" ino=52255122 ioctlcmd=0x8933 scontext=system_u:system_r:NetworkManager_dispatcher_custom_t:s0 tcontext=system_u:system_r:NetworkManager_dispatcher_custom_t:s0 tclass=unix_dgram_socket permissive=1


Hash: systemd-resolve,NetworkManager_dispatcher_custom_t,NetworkManager_dispatcher_custom_t,unix_dgram_socket,ioctl

Version-Release number of selected component:
selinux-policy-targeted-36.10-1.fc36.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.17.1
hashmarkername: setroubleshoot
kernel:         5.17.13-300.fc36.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2022-06-28 15:28:04 UTC

*** This bug has been marked as a duplicate of bug 2093155 ***


Note You need to log in before you can comment on or make changes to this bug.