fedora-ci.koji-build.installability.functional fails because of SELinux AVC on /etc/resolv.conf #563

Closed
opened 2026-06-11 08:22:28 +00:00 by ppisar · 3 comments

This F45 update https://bodhi.fedoraproject.org/updates/FEDORA-2026-8570026a90 failed all fedora-ci.koji-build.installability.functional subtest because of new AVC denials on "dnf" invocation like this:

type=PROCTITLE msg=audit(06/11/2026 08:00:26.005:1104) : proctitle=/usr/lib/systemd/systemd-resolved 
type=PATH msg=audit(06/11/2026 08:00:26.005:1104) : item=0 name=/etc/resolv.conf inode=70590 dev=00:23 mode=file,644 ouid=root ogid=root rdev=00:00 obj=unconfined_u:object_r:admin_home_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0 
type=CWD msg=audit(06/11/2026 08:00:26.005:1104) : cwd=/ 
type=SYSCALL msg=audit(06/11/2026 08:00:26.005:1104) : arch=x86_64 syscall=newfstatat success=no exit=EACCES(Permission denied) a0=AT_FDCWD a1=0x56150941cd2c a2=0x7ffe447e10f0 a3=0x0 items=1 ppid=1 pid=510 auid=unset uid=systemd-resolve gid=systemd-resolve euid=systemd-resolve suid=systemd-resolve fsuid=systemd-resolve egid=systemd-resolve sgid=systemd-resolve fsgid=systemd-resolve tty=(none) ses=unset comm=systemd-resolve exe=/usr/lib/systemd/systemd-resolved subj=system_u:system_r:systemd_resolved_t:s0 key=(null) 
type=AVC msg=audit(06/11/2026 08:00:26.005:1104) : avc:  denied  { getattr } for  pid=510 comm=systemd-resolve path=/etc/resolv.conf dev="nvme0n1p3" ino=70590 scontext=system_u:system_r:systemd_resolved_t:s0 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file permissive=0 

It seems that something creates /etc/resolv.conf file in the CI environment with an unexpected file context admin_home_t.

/etc/resolv.conf on my systems have net_conf_t type and there is no AVC.

This F45 update <https://bodhi.fedoraproject.org/updates/FEDORA-2026-8570026a90> failed all fedora-ci.koji-build.installability.functional subtest because of new AVC denials on "dnf" invocation like this: ~~~~ type=PROCTITLE msg=audit(06/11/2026 08:00:26.005:1104) : proctitle=/usr/lib/systemd/systemd-resolved type=PATH msg=audit(06/11/2026 08:00:26.005:1104) : item=0 name=/etc/resolv.conf inode=70590 dev=00:23 mode=file,644 ouid=root ogid=root rdev=00:00 obj=unconfined_u:object_r:admin_home_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0 type=CWD msg=audit(06/11/2026 08:00:26.005:1104) : cwd=/ type=SYSCALL msg=audit(06/11/2026 08:00:26.005:1104) : arch=x86_64 syscall=newfstatat success=no exit=EACCES(Permission denied) a0=AT_FDCWD a1=0x56150941cd2c a2=0x7ffe447e10f0 a3=0x0 items=1 ppid=1 pid=510 auid=unset uid=systemd-resolve gid=systemd-resolve euid=systemd-resolve suid=systemd-resolve fsuid=systemd-resolve egid=systemd-resolve sgid=systemd-resolve fsgid=systemd-resolve tty=(none) ses=unset comm=systemd-resolve exe=/usr/lib/systemd/systemd-resolved subj=system_u:system_r:systemd_resolved_t:s0 key=(null) type=AVC msg=audit(06/11/2026 08:00:26.005:1104) : avc: denied { getattr } for pid=510 comm=systemd-resolve path=/etc/resolv.conf dev="nvme0n1p3" ino=70590 scontext=system_u:system_r:systemd_resolved_t:s0 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file permissive=0 ~~~~ It seems that something creates /etc/resolv.conf file in the CI environment with an unexpected file context admin_home_t. /etc/resolv.conf on my systems have net_conf_t type and there is no AVC.
ppisar changed title from fedora-ci.koji-build.installability.functional fails becauseof SELinux AVC on /etc/resolv.conf to fedora-ci.koji-build.installability.functional fails because of SELinux AVC on /etc/resolv.conf 2026-06-11 08:22:41 +00:00
Owner

Thanks, will try to see what component slipped through. I have checked some other packages and they have a similar failure

Thanks, will try to see what component slipped through. I have checked some other packages and they have a similar failure
lecris added this to the Board project 2026-06-11 08:39:22 +00:00
Owner

Confirmed that this is an issue with testing-farm. I've forwarded it there. It's tricky that I don't think I can fix this from this side because we still need the buildroot setup from there.

Confirmed that this is an issue with testing-farm. I've forwarded it there. It's tricky that I don't think I can fix this from this side because we still need the buildroot setup from there.
Owner
Issue was resolved roughly on 2026-06-12 https://status.testing-farm.io/issues/2026-06-10-installability-tests-fail-at-avc-check/
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ci/tickets#563
No description provided.