[Nix-dev] etc activation script & pkexec

Eelco Dolstra e.dolstra at tudelft.nl
Sat Aug 27 00:24:00 CEST 2011


Hi,

On 08/26/2011 09:08 PM, Yury G. Kudryashov wrote:

> I've spent some time trying to investigate why pkexec started to crash.
>
> It seems that our 'etc' activation script ignored the fact that
> /etc/polkit-1 is a symlink to /etc/static/polkit-1, and created a symlink
> from /etc/polkit-1/nullbackend.conf.d to
> /etc/static/polkit-1/nullbackend.conf.d.

But that's correct.  /etc/static/polkit-1/nullbackend.conf.d is in turn 
a symlink to /nix/store/...-polkit-0.102/etc/polkit-1/nullbackend.conf.d.

> As a result, I had a symlink from /etc/static/polkit/nullbackend.conf.d to
> itself, and pkexec crashed.

How did it end up being a symlink to itself?

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list