]> git.ipfire.org Git - thirdparty/systemd.git/commit
journald: move uid_for_system_journal() to uid-alloc-range.h
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Jun 2023 13:16:50 +0000 (15:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Jun 2023 07:32:04 +0000 (09:32 +0200)
commit115d5145a257c1a27330acf9f063b5f4d910ca4d
tree6d189c4faff5d67aa2c73c9c260a2af801877da5
parent8a8b4a8784f48e941b6b460b4cb963929d1d6a8d
journald: move uid_for_system_journal() to uid-alloc-range.h

Let's move this helper call from journald specific code to src/basic/,
so that we can use it from sd-journal.

While we are at it, slightly extend it to also cover container uids,
which are also routed to the system journal now.

This places the call in uid-alloc-range.[ch] which contains similar
functions that match UID ranges for specific purposes.
src/basic/uid-alloc-range.c
src/basic/uid-alloc-range.h
src/journal/journald-server.c