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
41 stars 22 forks source link

tmpfiles.d: install and use systemd-tmpfiles.d mechanism to .packit conf #442

Closed vmihalko closed 3 weeks ago

vmihalko commented 3 months ago

Summary

tmpfiles.d will automatically create the /etc/polkit-1/rules.d directory (and any non-existing directories on the path). After reboot, the directory contents will remain unchanged, and after removing the directory & rebooting, an empty directory will be created.

tmpfiles.d in fedora: https://docs.fedoraproject.org/en-US/packaging-guidelines/Tmpfiles.d/ tmpfiles.d manpage: https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html