]> git.ipfire.org Git - thirdparty/systemd.git/commit
fd-util: Add helpers to check if FD flags are safe 31419/head
authorAdrian Vovk <adrianvovk@gmail.com>
Tue, 20 Feb 2024 19:54:21 +0000 (14:54 -0500)
committerAdrian Vovk <adrianvovk@gmail.com>
Tue, 20 Feb 2024 20:01:37 +0000 (15:01 -0500)
commite4d0606c2b44079d885ce03522e558964769f143
treedb965bd8b4c0dd7a74ca01dc26b1c35e1d14a436
parent9e3db91f2f7663860657afbf2076ecebeeb26c93
fd-util: Add helpers to check if FD flags are safe

Adds a SAFE_FD_FLAGS define to list out all the safe FD flags, and also
an UNSAFE_FD_FLAGS() macro to strip out the safe flags and leave only
the unsafe flags. This can be used to quickly check if any unsafe flags
are set and print them for diagnostic purposes
src/basic/fd-util.h
src/home/homed-bus.c
src/journal/journald-native.c