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

Label /proc/sys/kernel/nmi_watchdog with proc_nmi_watchdog_t #2533

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

zpytela
Copy link
Contributor

@zpytela zpytela commented Jan 23, 2025

The kernel_write_nmi_watchdog_state() interface was added.

This kernel tunable can be used to control the NMI watchdog.

The kernel_write_nmi_watchdog_state() interface was added.
The commit addresses the following AVC denial:
type=PROCTITLE msg=audit(10/24/2024 09:51:41.105:265) : proctitle=/usr/sbin/pcm-sensor-server
type=PATH msg=audit(10/24/2024 09:51:41.105:265) : item=1 name=/proc/sys/kernel/nmi_watchdog inode=6631 dev=00:16 mode=file,644 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:sysctl_kernel_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0
type=PATH msg=audit(10/24/2024 09:51:41.105:265) : item=0 name=/proc/sys/kernel/ inode=1530 dev=00:16 mode=dir,555 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:sysctl_kernel_t:s0 nametype=PARENT cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0
type=SYSCALL msg=audit(10/24/2024 09:51:41.105:265) : arch=x86_64 syscall=openat success=yes exit=59 a0=AT_FDCWD a1=0x5612b4e8a1ce a2=O_WRONLY|O_CREAT|O_TRUNC a3=0x1b6 items=2 ppid=1 pid=8210 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=pcm-sensor-serv exe=/usr/sbin/pcm-sensor-server subj=system_u:system_r:pcmsensor_t:s0 key=(null)
type=AVC msg=audit(10/24/2024 09:51:41.105:265) : avc:  denied  { write } for  pid=8210 comm=pcm-sensor-serv name=nmi_watchdog dev="proc" ino=6631 scontext=system_u:system_r:pcmsensor_t:s0 tcontext=system_u:object_r:sysctl_kernel_t:s0 tclass=file permissive=1

Resolves: RHEL-52838
@zpytela zpytela merged commit 5e3e821 into fedora-selinux:rawhide Jan 27, 2025
3 of 4 checks passed
@zpytela zpytela deleted the genfscon-entries branch January 27, 2025 13:59
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