nixpkgs/nixos/modules
ShaRose 9e2308ed80 nixos/dnsdist: Add CAP_NET_BIND_SERVICE to AmbientCapabilities
It seems that dnsdist doesn't actually request CAP_NET_BIND_SERVICE, which is why normally it's executed and root and setuids to another, unprivileged, user. This means that as it is, dnsdist will be unable to bind to any port under 1024 and will fail with access denied.

Removing CAP_SETGID and CAP_SETUID is also related to this as we don't actually change the uid or gid after the fact as we use DynamicUser. (That part isn't strictly NEEDED but there's no reason to have those capabilities if we don't use them).

There are also some additional sandboxing we can remove from the service definition as they are assumed true or strict by DynamicUser: specifically PrivateTmp and ProtectSystem respectively.

ProtectHome is still there, despite being assumed read-only as setting it to true means they are seen as empty. I don't think it really matters as I don't know if systemd will ignore it or not, but I didn't see any reason to go hunting for excuses to make it a bigger change.
2019-10-31 13:27:55 -02:30
..
config Revert "Merge pull request #71095 from flokli/pinentry-cleanup" 2019-10-16 20:28:21 -04:00
hardware nixos/steam-hardware: add uinput to boot.kernelModules 2019-10-06 11:34:54 +09:00
i18n/input-method Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
installer Revert "Merge pull request #71095 from flokli/pinentry-cleanup" 2019-10-16 20:28:21 -04:00
misc locate.nix: Don't create /var/cache 2019-10-08 21:45:42 +02:00
profiles Revert "Merge pull request #71095 from flokli/pinentry-cleanup" 2019-10-16 20:28:21 -04:00
programs Revert "Merge pull request #71095 from flokli/pinentry-cleanup" 2019-10-16 20:28:21 -04:00
security Merge pull request #67748 from typetetris/yubico-local-auth 2019-09-24 03:31:39 +01:00
services nixos/dnsdist: Add CAP_NET_BIND_SERVICE to AmbientCapabilities 2019-10-31 13:27:55 -02:30
system nixos/plymouth: do not order plymouth-quit after display-manager 2019-10-14 13:08:51 +02:00
tasks Merge pull request #70240 from woffs/pr-etc-zpool.d 2019-10-15 11:45:52 +01:00
testing nixos/test: remove the stateVersion statement from the test-instrumentation 2019-06-03 15:05:24 +02:00
virtualisation Revert "Merge #67232: machinectl compliant NixOS installation" 2019-10-07 20:56:59 +02:00
module-list.nix nixos/pppd: init 2019-10-15 08:36:09 -07:00
rename.nix Revive systemd.coredump.enable 2019-10-07 20:28:13 +02:00