summaryrefslogtreecommitdiff
path: root/src/basic/audit-util.h
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-08-14 09:16:15 +0200
committerSven Eden <yamakuzure@gmx.net>2017-08-14 09:20:53 +0200
commit2f66635635c12ee0246a5c4f771772ed2b71bec6 (patch)
tree8fdaaf3a21ce5f39638396222bbf4dedab7ba4c3 /src/basic/audit-util.h
parentc59be53b8741357a7a499785bc67204a51ddde77 (diff)
Prep v235: Apply upstream fixes (3/10) [src/basic]
Diffstat (limited to 'src/basic/audit-util.h')
-rw-r--r--src/basic/audit-util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/audit-util.h b/src/basic/audit-util.h
index b16ca585b..3e354eea7 100644
--- a/src/basic/audit-util.h
+++ b/src/basic/audit-util.h
@@ -31,3 +31,7 @@ int audit_loginuid_from_pid(pid_t pid, uid_t *uid);
#if 0 /// UNNEEDED by elogind
bool use_audit(void);
#endif // 0
+
+static inline bool audit_session_is_valid(uint32_t id) {
+ return id > 0 && id != AUDIT_SESSION_INVALID;
+}