]> git.ipfire.org Git - thirdparty/systemd.git/commit
tmpfiles: whenever creating an inode, immediately O_PATH open it to pin it
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Sep 2022 09:46:23 +0000 (10:46 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Sep 2022 07:26:56 +0000 (09:26 +0200)
commit8f6fb95cd069884f4ce0a24eb20efc821ae3bc5e
treedf52789bfbd82caf585c29f17bdb51ee5fc03398
parent497ca785aa9bb241873cbcfd8c0a6cb12dcacbf9
tmpfiles: whenever creating an inode, immediately O_PATH open it to pin it

let's make things a bit less racy: whenever we create an inode,
immediately open it via O_PATH, compare type and continue operations
with the acquired fd.
src/tmpfiles/tmpfiles.c