diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-07-08 10:05:57 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-07-08 17:43:49 +0200 |
commit | 03bc11d1c491d6b8fed1e43c2929790d004d7367 (patch) | |
tree | 5021f0a3c79c7cfa44c174ab0dbaf947bbbd96e6 /src/basic | |
parent | tmpfiles: take error code from "errno" earlier (diff) | |
download | systemd-03bc11d1c491d6b8fed1e43c2929790d004d7367.tar.xz systemd-03bc11d1c491d6b8fed1e43c2929790d004d7367.zip |
mac: rework labelling code to be simpler, and less racy
This merges the various labelling calls into a single label_fix_full(),
which can operate on paths, on inode fds, and in a dirfd/fname style
(i.e. like openat()). It also systematically separates the path to look
up in the db from the path we actually use to reference the inode to
relabel.
This then ports tmpfiles over to labelling by fd. This should make the
code a bit less racy, as we'll try hard to always operate on the very
same inode, pinning it via an fd.
User-visibly the behaviour should not change.
Diffstat (limited to 'src/basic')
0 files changed, 0 insertions, 0 deletions