]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/audit-util.c
audit: introduce audit_session_is_valid() and make use of it everywhere
authorLennart Poettering <lennart@poettering.net>
Fri, 14 Jul 2017 16:42:17 +0000 (18:42 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 31 Jul 2017 16:01:42 +0000 (18:01 +0200)
commit3a87a86e33c20aab20d8b221adae2015d12bbb80
tree9eaa3483c7e5e1f34a5ace9fa50ebf378aa2d26a
parentab7e3ef561e5c1ff63b58f4a329a9f90f0768eb0
audit: introduce audit_session_is_valid() and make use of it everywhere

Let's add a proper validation function, since validation isn't entirely
trivial. Make use of it where applicable. Also make use of
AUDIT_SESSION_INVALID where we need a marker for an invalid audit
session.
src/basic/audit-util.c
src/basic/audit-util.h
src/libsystemd/sd-bus/bus-creds.c
src/login/logind-dbus.c
src/login/logind-session.c