-
Notifications
You must be signed in to change notification settings - Fork 84
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
launcher: allow searching for system-services in /etc/ and /run/ #378
Conversation
Thanks! No objections from me! Any consensus on whether to enable inotify-watches on the entry? And whether to enforce well-defined file-names for service entries there? I can wait merging these until they the discussion is settled. Personally, I agree with Smcv and we should not provide inotify-watches, but enforce well-defined file-names. |
Yeah I am fine with not doing inotify and with strict enforcement, already updated as such in dbus-daemon, I'll check later how to do the same here and will update the PR accordingly. Thanks! |
We enforce strict names on the system bus for security reasons, but warn only on the user bus. I think we unconditionally watch all service dirs, though. I think the reasoning was to be consistent, not entirely sure TBH. So I think the patch is fine as is. |
This is useful when an asset manager wants to install a system service while /usr/ is read-only (e.g.: local system services running on a different namespaced image). dbus-daemon also will search in /run/, so do the same for consistency, for ephemeral services. For the spec changes see: https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/467 Signed-off-by: Luca Boccassi <[email protected]>
Ok no problem, I'll leave as-is then. We are adding /run/ as well in dbus-daemon, so added here as well. |
The dbus-daemon and spec side was merged just now |
/etc is higher priority than /run? |
yes that's the case in systemd and everywhere else that uses this pattern - it is weird yes, but too ingrained to change now |
Thanks a lot! Weird, I never noticed that /run isn't highest priority. So it is just a matter of time until we introduce /run/etc? :) |
...or /etc/run/ !! |
This is useful when an asset manager wants to install a system service while /usr/ is read-only (e.g.: local system services running on a different namespaced image)
spec and dbus-daemon corresponding change: https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/467