Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dontaudit systemd-coredump the sys_resource capability #2484

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

zpytela
Copy link
Contributor

@zpytela zpytela commented Dec 13, 2024

After joining container namespace, the sd-parse-elf process wants to drop privileges (i.e. switch under systemd-resolve user) and as part of that process it calls the getpwnam() function. When /etc/nsswitch.conf in container has 'systemd' in passwd and group entries, that causes glibc to try to load that module. However, it is not loading (i.e. trying to create executable mapping of underlying .so file) the module from rootfs but from container and because coredumpt_t doesn't not have execute permission in container_t files we get AVC denial.

While there, the capabilities granted previously were removed.

Resolves: RHEL-46339

After joining container namespace, the sd-parse-elf process wants to drop
privileges (i.e. switch under systemd-resolve user) and as part of that
process it calls the getpwnam() function. When /etc/nsswitch.conf in
container has 'systemd' in passwd and group entries, that causes glibc
to try to load that module. However, it is not loading (i.e. trying to
create executable mapping of underlying .so file) the module from rootfs
but from container and because coredumpt_t doesn't not have execute
permission in container_t files we get AVC denial.

While there, the capabilities granted previously were removed.

Resolves: RHEL-46339
@zpytela zpytela merged commit 4796511 into fedora-selinux:rawhide Dec 13, 2024
2 of 4 checks passed
@zpytela zpytela deleted the sd-coredump-sysresource branch December 13, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant