diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-06-07 15:16:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-06-08 09:32:04 +0200 |
commit | 115d5145a257c1a27330acf9f063b5f4d910ca4d (patch) | |
tree | 6d189c4faff5d67aa2c73c9c260a2af801877da5 /src/journal/journald-server.c | |
parent | shared: move uid-alloc-range.[ch] from src/shared/ → src/basic/ (diff) | |
download | systemd-115d5145a257c1a27330acf9f063b5f4d910ca4d.tar.xz systemd-115d5145a257c1a27330acf9f063b5f4d910ca4d.zip |
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.
Diffstat (limited to 'src/journal/journald-server.c')
-rw-r--r-- | src/journal/journald-server.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index 1763a2556e..2932a190ff 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -238,13 +238,6 @@ void server_space_usage_message(Server *s, JournalStorage *storage) { NULL); } -static bool uid_for_system_journal(uid_t uid) { - - /* Returns true if the specified UID shall get its data stored in the system journal. */ - - return uid_is_system(uid) || uid_is_dynamic(uid) || uid == UID_NOBODY; -} - static void server_add_acls(ManagedJournalFile *f, uid_t uid) { assert(f); |