|polkit Reference Manual|
polkit exports a number of extension points to replace/customize behavior of the polkit daemon. Note that all extensions run with super user privileges in the same process as the polkit daemon.
The polkit daemons loads extensions
The following extension points are currently defined by polkit:
Allows replacing the Authority – the entity responsible for
making authorization decisions. Implementations of this
extension point must be derived from the
PolkitBackendAuthority class. See
src/nullbackend/ directory in the
polkit sources for an example.