]> git.ipfire.org Git - thirdparty/systemd.git/commit
mountfsd: optionally accept an access mode for the dir created by MakeDirectory()
authorLennart Poettering <lennart@poettering.net>
Thu, 20 Nov 2025 12:12:40 +0000 (13:12 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 21 Dec 2025 06:04:42 +0000 (07:04 +0100)
commit46341769b7146d6d7b80507b0b37f253dd7cfda1
tree0bd5e1bd4777bcff48df8619cc9d676c6da24b5b
parent6e07fc6bcc34b05ace0011b7046df933ab9c9008
mountfsd: optionally accept an access mode for the dir created by MakeDirectory()

So far we expected the client to access the access mode themselves, and
set a restrictive 0700 server-side.

However, in some scenarios it's handy if the inode is created
server-side already with the right mode, in particular when the client
doesn't do anything with the dir just yet, and just needs it to be there
with the right mode. If it has to adjust the mode client-side it might
otherwise need to fork something off, join the selected userns, adjust
the mode, and kill the child off again.
src/mountfsd/mountwork.c
src/shared/varlink-io.systemd.MountFileSystem.c