[PATCH 0/3] PolicyKit - Add Shadow authorisation database
Carlos Corbacho
carlos at strangeworlds.co.uk
Thu Dec 6 20:39:51 PST 2007
David, Piter,
The following three patches will integrate Piter's work into PolicyKit.
Patch 1: PAM header cleanups (pretty trivial)
Patch 2: Major build system overhaul -> this throws away the old
POLKIT_AUTHDB_DEFAULT variable, since it doesn't really make any sense.
What PolicyKit really does for the authorisation database can be boiled down
to 'build dummy backend' or 'don't build dummy backend', of which PAM and
shadow are just specifics of the latter - trying to sprinkle 'default'
throughout the code base doesn't make much sense; instead, I've hardcoded
configure to set the default to pick PAM (although, in future, this could be
changed so that the 'default' is if PAM is detected, use PAM; otherwise, pick
Shadow) - as opposed to the current state, where default just is PAM, and
there is no PAM option.
So all POLKIT_AUTHDB_DEFAULT tests are essentially replaced with testing
for !POLKIT_AUTHDB_DEFAULT.
The PAM specific bits in the code are then wrapped around with a new variable,
POLKIT_AUTHDB_PAM (which makes it easy to then add the shadow specific bits
later, or any other authentication helper in future).
Patch 3: Add Piter's shadow work -> This depends on the previous two patches.
-Carlos
--
E-Mail: carlos at strangeworlds.co.uk
Web: strangeworlds.co.uk
GPG Key ID: 0x23EE722D
More information about the hal
mailing list