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

unconfined_u:unconfined_r:unconfined_t is unable to configure safesetid #2071

Open
shammancer opened this issue Mar 22, 2024 · 0 comments
Open

Comments

@shammancer
Copy link
Contributor

Hello,

I'm playing around with custom kernel and trying out safesetid and I'm unable to configure safesetid LSM when SELinux is in enforcing mode.

Fedora Release

$ cat /etc/redhat-release

Fedora release 39 (Thirty Nine)

Policy packages:

$ dnf list --installed | grep selinux-policy

selinux-policy.noarch 39.5-1.fc39 @updates
selinux-policy-targeted.noarch 39.5-1.fc39 @updates

Reproducer command:

sudo bash -c "echo \"1001:1002\" > /sys/kernel/security/safesetid/uid_allowlist_policy"

Audit Message:

Mar 22 12:28:30 lfd441-fedora39-uefi audit[1201]: AVC avc: denied { mac_admin } for pid=1201 comm="bash" capability=33 context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=capability2 permissive=0

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

No branches or pull requests

1 participant