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

Permit reboot/shutdown init commands to a group instead only root #738

Open
alonbl opened this issue Sep 11, 2024 · 0 comments
Open

Permit reboot/shutdown init commands to a group instead only root #738

alonbl opened this issue Sep 11, 2024 · 0 comments
Assignees

Comments

@alonbl
Copy link
Contributor

alonbl commented Sep 11, 2024

Hello,

Currently the control pipe of init is accessible only to root:

$ ls -la /run/openrc/init.ctl
prw-------    1 root     root             0 Jan  9 01:43 /run/openrc/init.ctl

I wonder if you accept a patch to add a group (based on rc.conf configuration), so that non-root process may interact with init to perform shutdown/reboot. It is safer and simpler than using sudo or providing CAP_KILL to perform this using a signal.

What do you think?

Thanks,

@navi-desu navi-desu self-assigned this Sep 22, 2024
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

2 participants