polkit-org / polkit

polkit (formerly PolicyKit) is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes.
Other
48 stars 27 forks source link

/usr/local/share is not supported for rules and actions #419

Open bam80 opened 7 months ago

bam80 commented 7 months ago

I see the support for rules was added once, but then reverted: https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/77

@jrybar-rh are you going to bring it back, preferably with actions?

We at KDE are struggling without such support: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1715/diffs#60cf9b542a37959697ff619f4306430348c9e7b2_38_25

Thank you.

jrybar-rh commented 7 months ago

Hello,
yes, this can be looked into, since you added it into issues, once other priorities are taken care of.
TBH, the entire code governing rules/actions-loading seems to need a little care.
Thanks for reporting.

jinliu commented 6 months ago

It would be good if /run is also supported, in the usual precedence of /run -> /usr/local -> /usr. So the KDE dev session can temporarily install some rules, without affecting other, system-installed sessions.

jrybar-rh commented 6 months ago

It would be good if /run is also supported, in the usual precedence of /run -> /usr/local -> /usr. So the KDE dev session can temporarily install some rules, without affecting other, system-installed sessions.

Yes, it would. The plan is to align polkit with other services in this matter to support all the traditional config sources in the usual order.