summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorRobert Obryk <robryk@gmail.com>2022-11-05 00:09:32 +0100
committerRobert Obryk <robryk@gmail.com>2023-08-16 11:33:22 +0200
commitec36e0218f785b4776496a9733334faec704cb4e (patch)
tree20a1f1c6592995405d5ed5abf796db3bdae23372 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parent193f4a38b1c1f69b9016a6f76aff62ebbab7b84a (diff)
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.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions