dhcpcd: use dhcpcd as privsep user

This commit is contained in:
Franz Pletz
2021-12-17 19:23:00 +01:00
parent 8072ee22f2
commit 0cb8669638
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -214,11 +214,11 @@ in
};
};
users.users._dhcpcd = {
users.users.dhcpcd = {
isSystemUser = true;
group = "_dhcpcd";
group = "dhcpcd";
};
users.groups._dhcpcd = {};
users.groups.dhcpcd = {};
environment.systemPackages = [ dhcpcd ];
+2 -2
View File
@@ -37,8 +37,8 @@ stdenv.mkDerivation rec {
++ lib.optionals enablePrivSep [
"--enable-privsep"
# dhcpcd disables privsep if it can't find the default user,
# so we explicitly specify the default.
"--privsepuser=_dhcpcd"
# so we explicitly specify a user.
"--privsepuser=dhcpcd"
];
makeFlags = [ "PREFIX=${placeholder "out"}" ];