From c515be46510b02d541ef8b1e978227fcf0367deb Mon Sep 17 00:00:00 2001 From: zimbatm Date: Tue, 8 Dec 2015 16:46:57 +0000 Subject: [PATCH] networkmanager: set uid/gid for the networkmanager openvpn agent Fixes #11317 --- nixos/modules/misc/ids.nix | 2 ++ nixos/modules/services/networking/networkmanager.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix index 6ff95605d4b2..7a7ed2f4408c 100644 --- a/nixos/modules/misc/ids.nix +++ b/nixos/modules/misc/ids.nix @@ -238,6 +238,7 @@ heapster = 214; bepasty = 215; pumpio = 216; + nm-openvpn = 217; # When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399! @@ -453,6 +454,7 @@ calibre-server = 213; bepasty = 215; pumpio = 216; + nm-openvpn = 217; # When adding a gid, make sure it doesn't match an existing # uid. Users and groups with the same name should have equal diff --git a/nixos/modules/services/networking/networkmanager.nix b/nixos/modules/services/networking/networkmanager.nix index 7df194fa419b..8ab4cfcc114a 100644 --- a/nixos/modules/services/networking/networkmanager.nix +++ b/nixos/modules/services/networking/networkmanager.nix @@ -223,9 +223,11 @@ in { } { name = "nm-openvpn"; + gid = config.ids.gids.nm-openvpn; }]; users.extraUsers = [{ name = "nm-openvpn"; + uid = config.ids.uids.nm-openvpn; }]; systemd.packages = cfg.packages;