Bug#765854: ecryptfs-utils: Private directory not automatically unmounted anymore on logout

Martin Pitt mpitt at debian.org
Sun Jan 8 20:32:25 GMT 2017


Julian Andres Klode [2017-01-08 19:13 +0100]:
> (1) Seems you install to lib/systemd/system - but the service would have to be
>     in lib/systemd/user to work (it's a user service)

That makes little sense IMHO -- the systemd user instance needs to be able to
see ~/.config/systemd/user/ at startup, and on logout all user processes
including systemd need to stop before you will be able to unmount the
unencrypted $HOME -- so the mount/unmount needs to be done by a PAM module
(pam_ecryptfs). This works just fine in Ubuntu at least (I've used ecryptfs on
my $HOME for many years).

So a user systemd unit for handling ecryptfs mounting seems both unnecessary
(it was never needed in Ubuntu, for example) and actively harmful as it's the
wrong way around IMHO.

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)




More information about the Pkg-systemd-maintainers mailing list