]> git.ipfire.org Git - thirdparty/systemd.git/commit
mountfsd: allow privileged users to mount bare unprotected filesystems
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 20 Oct 2025 23:37:44 +0000 (00:37 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 22 Oct 2025 15:47:46 +0000 (16:47 +0100)
commit53d49fbf3fec22be03d307f24ae4b9ac6b3db52a
tree976d5a5ae05a1a0cd15ee8a3c5e472a9e4101283
parent3331d99b491fd334a0695064fcbd19b651016c51
mountfsd: allow privileged users to mount bare unprotected filesystems

This is useful when we start to call mountfsd from root, for example
from the tests where we just use a simple squashfs/erofs.
Note that this requires the caller to be root, and it will be rejected
otherwise, as such images are classified as 'unprotected' and the
enforced policy does not accept them for unprivileged users.
src/mountfsd/mountwork.c
test/units/TEST-50-DISSECT.mountfsd.sh