Merge pull request #11956 from zimbatm/nm-openvpn-uid-gid

networkmanager: set uid/gid for the networkmanager openvpn agent
This commit is contained in:
Domen Kožar 2015-12-27 11:02:55 +01:00
commit fe9a7c6d5b
2 changed files with 4 additions and 0 deletions

View File

@ -238,6 +238,7 @@
heapster = 214; heapster = 214;
bepasty = 215; bepasty = 215;
pumpio = 216; 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! # 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; calibre-server = 213;
bepasty = 215; bepasty = 215;
pumpio = 216; pumpio = 216;
nm-openvpn = 217;
# When adding a gid, make sure it doesn't match an existing # When adding a gid, make sure it doesn't match an existing
# uid. Users and groups with the same name should have equal # uid. Users and groups with the same name should have equal

View File

@ -223,9 +223,11 @@ in {
} }
{ {
name = "nm-openvpn"; name = "nm-openvpn";
gid = config.ids.gids.nm-openvpn;
}]; }];
users.extraUsers = [{ users.extraUsers = [{
name = "nm-openvpn"; name = "nm-openvpn";
uid = config.ids.uids.nm-openvpn;
}]; }];
systemd.packages = cfg.packages; systemd.packages = cfg.packages;