systemd/src/tmpfiles
Lennart Poettering 03bc11d1c4 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.
2022-07-08 17:43:49 +02:00
..
meson.build meson: Use files() for tests 2022-01-11 14:15:54 +01:00
offline-passwd.c strv: declare iterator of FOREACH_STRING() in the loop 2022-03-23 11:50:18 +01:00
offline-passwd.h tmpfiles: move offline-passwd.[ch] to src/tmpfiles 2021-01-19 07:04:18 +09:00
test-offline-passwd.c tree-wide: add a space after if, switch, for, and while 2022-04-01 22:48:42 +09:00
tmpfiles.c mac: rework labelling code to be simpler, and less racy 2022-07-08 17:43:49 +02:00