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

Fix ras-mc-ctl.service (rasdaemon) #2055

Open
wants to merge 1 commit into
base: rawhide
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions policy/modules/contrib/rasdaemon.te
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ kernel_read_system_state(rasdaemon_t)
kernel_manage_debugfs(rasdaemon_t)

dev_read_raw_memory(rasdaemon_t)
dev_read_sysfs(rasdaemon_t)
dev_rw_sysfs(rasdaemon_t)
dev_read_urand(rasdaemon_t)
dev_rw_cpu_microcode(rasdaemon_t)

Expand All @@ -42,7 +42,13 @@ fs_manage_tracefs_dirs(rasdaemon_t)
fs_mount_tracefs(rasdaemon_t)
fs_unmount_tracefs(rasdaemon_t)

modutils_dontaudit_exec_kmod(rasdaemon_t) # more info here #1030277
# In rasdaemon 0.8.0, ras-mc-ctl tries to find modprobe, exits with error
# code if fails, but never actually uses it. While it should be fixed in
# rasdaemon, it seems to be safe to just allow it to find the binary.
gen_require(`
type kmod_exec_t;
')
allow rasdaemon_t kmod_exec_t:file getattr;

auth_use_nsswitch(rasdaemon_t)

Expand Down