nixpkgs/nixos/modules
Robert Obryk 1bdbc0b0fe nixos/security/wrappers: stop using .real files
Before this change it was crucial that nonprivileged users are unable to
create hardlinks to SUID wrappers, lest they be able to provide a
different `.real` file alongside. That was ensured by not providing a
location writable to them in the /run/wrappers tmpfs, (unless
disabled) by the fs.protected_hardlinks=1 sysctl, and by the explicit
own-path check in the wrapper. After this change, ensuring
that property is no longer important, and the check is most likely
redundant.

The simplification of expectations of the wrapper will make it
easier to remove some of the assertions in the wrapper (which currently
cause the wrapper to fail in no_new_privs environments, instead of
executing the target with non-elevated privileges).

Note that wrappers had to be copied (not symlinked) into /run/wrappers
due to the SUID/capability bits, and they couldn't be hard/softlinks of
each other due to those bits potentially differing. Thus, this change
doesn't increase the amount of memory used by /run/wrappers.

This change removes part of the test that is obsoleted by the removal of
`.real` files.
2023-08-27 14:10:36 +02:00
..
config nixos/zram: use nixos/zram-generator as backing implementation 2023-08-13 15:38:40 +08:00
hardware Merge pull request #244060 from Gerg-L/nvidiaDynamicBoost 2023-08-10 17:02:26 +02:00
i18n/input-method nixos/fcitx5: fix evaluation 2023-08-15 08:15:41 +08:00
image modules/image/repart: Fix stripNixStorePrefix 2023-08-22 13:09:03 +02:00
installer Merge pull request #248701 from doronbehar/nixos/manpages 2023-08-16 15:49:49 +00:00
misc nixos/doc: Improve documentation of documentation 2023-08-12 22:28:04 +03:00
profiles nixos/installation-device: allow nix-copy for root/nixos user 2023-08-07 16:48:49 +02:00
programs Merge pull request #248748 from acid-bong/zshLsColors 2023-08-24 22:04:43 +03:00
security nixos/security/wrappers: stop using .real files 2023-08-27 14:10:36 +02:00
services nixos/netbox: add keycloakClientSecret option 2023-08-25 15:42:44 +01:00
system nixos/binfmt: use PE magic to detect Wine executables 2023-08-23 16:20:57 +03:00
tasks nixos/security/wrappers: generate a separate and more complete apparmor policy fragment for each wrapper 2023-08-27 14:10:07 +02:00
testing Merge pull request #219106 from m-bdf/nixos-testing-increase-device-timeout 2023-06-20 11:48:45 +02:00
virtualisation Merge master into staging-next 2023-08-19 00:01:42 +00:00
module-list.nix Merge pull request #248855 from NickCao/zram-generator 2023-08-24 08:57:22 +08:00
rename.nix nixos/dhcp(46): remove 2023-07-28 16:35:40 +02:00