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

Allow upsmon execute upsmon via a helper script #1811

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

zpytela
Copy link
Contributor

@zpytela zpytela commented Aug 2, 2023

The NUT UPS monitor service (upsmon) can be configured to execute a notification helper (upssched) which can use a custom script to run upsmon again, e. g. to shut the system down.

The commit addresses the following AVC denial:
type=AVC msg=audit(1690760021.301:222): avc: denied { execute_no_trans } for pid=2267 comm="upssched-handle" path="/usr/sbin/upsmon" dev="dm-0" ino=27404 scontext=system_u:system_r:nut_upsmon_t:s0 tcontext=system_u:object_r:nut_upsmon_exec_t:s0 tclass=file permissive=1

Resolves: rhbz#2228245

The NUT UPS monitor service (upsmon) can be configured to execute a
notification helper (upssched) which can use a custom script to run
upsmon again, e. g. to shut the system down.

The commit addresses the following AVC denial:
type=AVC msg=audit(1690760021.301:222): avc:  denied  { execute_no_trans } for  pid=2267 comm="upssched-handle" path="/usr/sbin/upsmon" dev="dm-0" ino=27404 scontext=system_u:system_r:nut_upsmon_t:s0 tcontext=system_u:object_r:nut_upsmon_exec_t:s0 tclass=file permissive=1

Resolves: rhbz#2228245
@zpytela zpytela merged commit 75cf60e into fedora-selinux:rawhide Aug 2, 2023
2 checks passed
@zpytela zpytela deleted the nut-self-execute branch August 2, 2023 17:00
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