git.iko.soy/typeable/nixpkgs
on master help sign in
nixos: remove the grsecurity GID

This GID was used to exempt users from Grsecurity's `/proc` restrictions; we now prefer to rely on `security.hideProcessInformation`, which uses the `proc` group for this purpose. That leaves no use for the grsecurity GID. More generally, having only a single GID to, presumably, serve as the default for all of grsecurity's GID based exemption/resriction schemes would be problematic in any event, so if we decide to enable those grsecurity features in the future, more specific GIDs should be added.

commita53452f3e12f4feb76a5169149d93c3bd5359363 authorJoachim Fasting <joachifm@fastmail.fm> dateThu 9 Jun 2016, 20:29 (10 years ago) parent0677cc6
2 files changed−4
nixos/modules/config/users-groups.nix−2 nixos/modules/misc/ids.nix−2
nixos/modules/config/users-groups.nix−2
@@ -468,7 +468,6 @@ in {
468468 home = "/root";
469469 shell = mkDefault cfg.defaultUserShell;
470470 group = "root";
471− extraGroups = [ "grsecurity" ];
472471 initialHashedPassword = mkDefault config.security.initialRootPassword;
473472 };
474473 nobody = {
@@ -497,7 +496,6 @@ in {
497496 nixbld.gid = ids.gids.nixbld;
498497 utmp.gid = ids.gids.utmp;
499498 adm.gid = ids.gids.adm;
500− grsecurity.gid = ids.gids.grsecurity;
501499 input.gid = ids.gids.input;
502500 };
503501
nixos/modules/misc/ids.nix−2
@@ -147,7 +147,6 @@
147147 foundationdb = 118;
148148 newrelic = 119;
149149 starbound = 120;
150− #grsecurity = 121; # unused
151150 hydra = 122;
152151 spiped = 123;
153152 teamspeak = 124;
@@ -396,7 +395,6 @@
396395 foundationdb = 118;
397396 newrelic = 119;
398397 starbound = 120;
399− grsecurity = 121;
400398 hydra = 122;
401399 spiped = 123;
402400 teamspeak = 124;