Merge pull request #145247 from SuperSandro2000/tinc

nixos/tinc: disable chroot by default
This commit is contained in:
Jörg Thalheim 2021-11-09 20:41:58 +00:00 committed by GitHub
commit 5308e9b810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -289,13 +289,13 @@ in
};
chroot = mkOption {
default = true;
default = false;
type = types.bool;
description = ''
Change process root directory to the directory where the config file is located (/etc/tinc/netname/), for added security.
The chroot is performed after all the initialization is done, after writing pid files and opening network sockets.
Note that tinc can't run scripts anymore (such as tinc-down or host-up), unless it is setup to be runnable inside chroot environment.
Note that this currently breaks dns resolution and tinc can't run scripts anymore (such as tinc-down or host-up), unless it is setup to be runnable inside chroot environment.
'';
};