nixos/dnscrypt-proxy: more fs isolation for the updater

It'd be better to do the update as an unprivileged user; for
now, we do our best to minimize the surface available.  We
filter mount syscalls to prevent the process from undoing the fs
isolation.
This commit is contained in:
Joachim Fasting 2017-03-08 00:42:20 +01:00
parent e72aaa73ea
commit 5f27abec23
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08

View File

@ -285,7 +285,9 @@ in
PrivateTmp = true;
PrivateDevices = true;
ProtectHome = true;
ProtectSystem = true;
ProtectSystem = "strict";
ReadWritePaths = "${dirOf stateDirectory} ${stateDirectory}";
SystemCallFilter = "~@mount";
};
};