1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-10 20:46:01 +01:00
nix/doc/manual
Théophane Hufschmitt e5a211d77e Add an owner check when searching for the flake root
When searching up the filesystem for the root of the flake (the
directory that contains the `flake.nix`), don’t go anywhere up if we
encounter a directory owned by a different user, as otherwise this other
user could craft an arbitrary flake, potentially causing bad stuff to
happen (shouldn’t in most cases since all it could do is run sanboxed
builds, but there’s probably a lot of edge-cases that would make this
very undesirable).

This is to fix Nix’s equivalent of CVE-2022-24765

This check is intentionnally not applied to the exact directory
specified since:
1. It’s up to the user to not point to an untrusted input
2. In multi-user Nix installations, that would prevent from using a
   flake in the Nix store (since it’s owned by root and not the current
   user)

Fix #6408
2023-06-19 15:01:12 +02:00
..
src Add an owner check when searching for the flake root 2023-06-19 15:01:12 +02:00
theme doc/manual: don't need to copy highlight.js manually 2021-08-04 19:47:05 -07:00
anchors.jq doc: Port anchors preprocessor to jq script 2022-05-26 18:17:21 +02:00
book.toml manual: Check links 2023-01-10 22:30:41 +01:00
custom.css disallow selecting shell prompt in code samples 2022-12-05 11:01:46 +01:00
generate-builtins.nix doc rendering: add functions to scope explicitly (#7378) 2023-05-03 07:16:29 +00:00
generate-manpage.nix doc rendering: add functions to scope explicitly (#7378) 2023-05-03 07:16:29 +00:00
generate-xp-features-shortlist.nix Single page for experimental feature descriptions 2023-04-09 11:01:23 -04:00
generate-xp-features.nix Single page for experimental feature descriptions 2023-04-09 11:01:23 -04:00
local.mk display documentation on manifest files separately 2023-04-28 12:10:36 +02:00
quote-literals.xsl Generate release notes again 2014-03-12 14:24:29 +01:00
redirects.js add redirect to track moved uninstall section 2023-05-03 11:39:29 +02:00
utils.nix Mark experimental configuration settings programmatically 2023-04-16 10:58:04 -04:00