-
Notifications
You must be signed in to change notification settings - Fork 157
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
Security and convenience #169
Comments
1st service (
2nd service (
|
I want to offer a scheme that offers a combination of maximum security and convenience. Just install 2 unit services with earlyoom package. |
BTW, -p flag will not provide niceness changes without CAP_SYS_NICE. -p option is broken now (I offer fixed units here). |
->
->
->
->
->
->
->
|
My plan is to implement the notifications differently, this sudo stuff is unsustainable imo. earlyoom will send a dbus message to the system bus, and there will be tiny daemon running as the user that listens for those messages and show a notification |
(not my idea, the idea is from here, german only unfortunately, but there is some python example code: https://wiki.debianforum.de/Desktop-Notification_von_Systemservice_mittels_dbus ) |
Did you test it? Is it really possible to notify all users without sudo+notify-send if the daemon started as root/nonroot/dynamicuser? |
Not yet, no. If you need root rights to send to the system bus then this will all not work. |
Seems to work ok (edit: both runs as the same, normal user)
|
Closing this in favor of #183 |
I hope that this thread will end with the adoption of the second unit service and release 1.5 (with -m changes, of course). Let's go!
The text was updated successfully, but these errors were encountered: