summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik
diff options
context:
space:
mode:
authorRobert Obryk <robryk@gmail.com>2022-11-14 14:45:36 +0100
committerRobert Obryk <robryk@gmail.com>2023-08-16 11:33:22 +0200
commit11ca4dcbb806217bd16a3df44b8368c936a7f415 (patch)
tree831362a1d13f26e2f986eb91caeb870beaddfb0f /pkgs/development/python-modules/python-mapnik
parentec36e0218f785b4776496a9733334faec704cb4e (diff)
nixos/security/wrappers: read capabilities off /proc/self/exe directly
/proc/self/exe is a "fake" symlink. When it's opened, it always opens the actual file that was execve()d in this process, even if the file was deleted or renamed; if the file is no longer accessible from the current chroot/mount namespace it will at the very worst fail and never open the wrong file. Thus, we can make a much simpler argument that we're reading capabilities off the correct file after this change (and that argument doesn't rely on things such as protected_hardlinks being enabled, or no users being able to write to /run/wrappers, or the verification that the path readlink returns starts with /run/wrappers/).
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik')
0 files changed, 0 insertions, 0 deletions