-
Notifications
You must be signed in to change notification settings - Fork 172
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
Should sysfs_t be split into more fine graded contexts? #1974
Comments
TomasKorbar
added a commit
to TomasKorbar/dnsconfd
that referenced
this issue
Dec 15, 2023
Because of Python's dependency on libgomp on Fedora >= 38 we have to add access to sysfs_t so dnsconfd is able to read /sys/devices/system/cpu/possible file This is discussed in Fedora selinux policy upstream fedora-selinux/selinux-policy#1974
TomasKorbar
added a commit
to TomasKorbar/dnsconfd
that referenced
this issue
Dec 15, 2023
Because of Python's dependency on libgomp on Fedora >= 38 we have to add access to sysfs_t so dnsconfd is able to read /sys/devices/system/cpu/possible file This is discussed in Fedora selinux policy upstream fedora-selinux/selinux-policy#1974
TomasKorbar
added a commit
to InfrastructureServices/dnsconfd
that referenced
this issue
Dec 15, 2023
Because of Python's dependency on libgomp on Fedora >= 38 we have to add access to sysfs_t so dnsconfd is able to read /sys/devices/system/cpu/possible file This is discussed in Fedora selinux policy upstream fedora-selinux/selinux-policy#1974
Hi Tomas, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
recently i have been debugging AVC denial that started occurring since Fedora 39 for my daemon written in Python.
I tracked down the issue to blake2 library's dependency on libgomp library which tries to find number of available CPUs by
reading of
/sys/devices/system/cpu/possible
. Seems like a valid use case for a library that provides support of parallel programming. The issue is that/sys/devices/system/cpu/possible
file has sysfs_t context and thus if you want to satisfy this request, you give the daemon access to a lot more information than just how many CPUs the system has.So my question is, shouldn't be there a separate context for CPU or perhaps more devices?
The text was updated successfully, but these errors were encountered: