Bug 2329280 - SELinux is preventing /usr/lib/systemd/systemd-resolved from 'getattr' accesses on the file /cgroup:[4026531835].
Summary: SELinux is preventing /usr/lib/systemd/systemd-resolved from 'getattr' access...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:bd5531b0ee97a57381f03ba790c...
: 2329752 2330476 2330722 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-28 01:15 UTC by Ian Laurie
Modified: 2025-01-09 10:37 UTC (History)
13 users (show)

Fixed In Version: selinux-policy-41.27-1.fc41
Clone Of:
Environment:
Last Closed: 2024-12-20 13:39:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.79 KB, text/plain)
2024-11-28 01:15 UTC, Ian Laurie
no flags Details
File: os_info (743 bytes, text/plain)
2024-11-28 01:15 UTC, Ian Laurie
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 2451 0 None open Allow systemd-related domains getattr nsfs files 2024-11-28 21:39:08 UTC

Description Ian Laurie 2024-11-28 01:15:18 UTC
Description of problem:
SELinux is preventing /usr/lib/systemd/systemd-resolved from 'getattr' accesses on the file /cgroup:[4026531835].

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

If you believe that systemd-resolved should be allowed getattr access on the cgroup:[4026531835] file 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:systemd_resolved_t:s0
Target Context                system_u:object_r:nsfs_t:s0
Target Objects                /cgroup:[4026531835] [ file ]
Source                        systemd-resolve
Source Path                   /usr/lib/systemd/systemd-resolved
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-resolved-257~rc3-1.fc42.x86_64
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.26-1.fc42.noarch
Local Policy RPM              selinux-policy-targeted-41.26-1.fc42.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.13.0-
                              0.rc0.20241126git7eef7e306d3c.10.fc42.x86_64 #1
                              SMP PREEMPT_DYNAMIC Tue Nov 26 15:06:05 UTC 2024
                              x86_64
Alert Count                   1
First Seen                    2024-11-28 12:09:20 AEDT
Last Seen                     2024-11-28 12:09:20 AEDT
Local ID                      2e53f480-77ca-49af-b20a-102e1b3ef2b9

Raw Audit Messages
type=AVC msg=audit(1732756160.385:67): avc:  denied  { getattr } for  pid=707 comm="systemd-resolve" path="cgroup:[4026531835]" dev="nsfs" ino=4026531835 scontext=system_u:system_r:systemd_resolved_t:s0 tcontext=system_u:object_r:nsfs_t:s0 tclass=file permissive=1


type=SYSCALL msg=audit(1732756160.385:67): arch=x86_64 syscall=newfstatat success=yes exit=0 a0=ffffff9c a1=7fff83b3a8e0 a2=7fff83b3a900 a3=0 items=1 ppid=1 pid=707 auid=4294967295 uid=193 gid=193 euid=193 suid=193 fsuid=193 egid=193 sgid=193 fsgid=193 tty=(none) ses=4294967295 comm=systemd-resolve exe=/usr/lib/systemd/systemd-resolved subj=system_u:system_r:systemd_resolved_t:s0 key=(null)

type=CWD msg=audit(1732756160.385:67): cwd=/

type=PATH msg=audit(1732756160.385:67): item=0 name=/proc/self/ns/cgroup inode=4026531835 dev=00:04 mode=0100444 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:nsfs_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0

Hash: systemd-resolve,systemd_resolved_t,nsfs_t,file,getattr

Version-Release number of selected component:
selinux-policy-targeted-41.26-1.fc42.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing /usr/lib/systemd/systemd-resolved from 'getattr' accesses on the file /cgroup:[4026531835].
package:        selinux-policy-targeted-41.26-1.fc42.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.13.0-0.rc0.20241126git7eef7e306d3c.10.fc42.x86_64
component:      selinux-policy

Comment 1 Ian Laurie 2024-11-28 01:15:21 UTC
Created attachment 2060178 [details]
File: description

Comment 2 Ian Laurie 2024-11-28 01:15:22 UTC
Created attachment 2060179 [details]
File: os_info

Comment 3 Ian Laurie 2024-11-28 01:19:46 UTC
This seemed to coincide with updating to systemd-257~rc3-1.fc42.x86_64.

Comment 4 Zdenek Pytela 2024-12-11 08:36:17 UTC
*** Bug 2329752 has been marked as a duplicate of this bug. ***

Comment 5 Zdenek Pytela 2024-12-11 08:38:20 UTC
*** Bug 2330722 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Update System 2024-12-18 08:57:39 UTC
FEDORA-2024-98cb37f64a (selinux-policy-41.27-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-98cb37f64a

Comment 7 Fedora Update System 2024-12-19 03:57:56 UTC
FEDORA-2024-98cb37f64a has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-98cb37f64a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-98cb37f64a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2024-12-20 13:39:20 UTC
FEDORA-2024-98cb37f64a (selinux-policy-41.27-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Zdenek Pytela 2025-01-09 10:37:25 UTC
*** Bug 2330476 has been marked as a duplicate of this bug. ***


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