]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/dissect/dissect.c
dissect-image: make dissected_image_acquire_metadata() operate within a userns if...
authorLennart Poettering <lennart@poettering.net>
Mon, 4 Dec 2023 17:23:31 +0000 (18:23 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 6 Apr 2024 14:08:23 +0000 (16:08 +0200)
commit44e3097dff3d25f4aaae5adeaca773232a16691d
tree4cf1295deacc93192ac79cafc0e081693b9f8d5d
parent77740bddbe0b79450a76552cf0810ae791b23a78
dissect-image: make dissected_image_acquire_metadata() operate within a userns if possible

This opens the door for making the call work without privileges: if we
pass in a userns fd and DissectedImage that has mount fds then we can
acquire all information without privs.
src/dissect/dissect.c
src/shared/discover-image.c
src/shared/dissect-image.c
src/shared/dissect-image.h