Am 21.10.2015 um 08:33 schrieb Martin Pitt:
> Hello Michael,
> 
> Michael Biebl [2015-10-21  1:45 +0200]:
>> any particular reason why you didn't just use
>> systemctl (un)mask --runtime
> 
> No particular one, but that looks a bit nicer indeed, and the code
> paths are already guarded with [ -d /run/systemd/system ]. Changed
> this to systemctl now and uploaded to unstable and experimental.
> 
> The single clean fix for this is now
> 
>   
> http://anonscm.debian.org/cgit/pkg-utopia/policykit.git/commit/?h=experimental&id=44b7a8f9326
> 

I thought about this a bit more as I'm generally a bit concerned about
special-case solutions/workarounds.
Maybe a cleaner solution would be to have the D-Bus service file use an
alias like
SystemdService=dbus-org.freedesktop.PolicyKit1.service

and add an [Install] section to polkit(d).service which creates that Alias=.

So the service could only be activated after having been enabled in
postinst. It would have the additional benefit, that one could disable
PolicyKit and this is a patch which could go upstream.



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to