diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2018-05-12 21:58:19 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2018-05-14 15:56:35 -0400 |
commit | f0b752168d7091f38e7d61a80de2542e8b71d266 (patch) | |
tree | ac6396e791a3c8e200eda5489344158529d4e5cb /include/linux/audit.h | |
parent | 326bee0286d7f6b0d780f5b75a35ea9fe489a802 (diff) | |
download | linux-f0b752168d7091f38e7d61a80de2542e8b71d266.tar.gz linux-f0b752168d7091f38e7d61a80de2542e8b71d266.tar.bz2 linux-f0b752168d7091f38e7d61a80de2542e8b71d266.zip |
audit: convert sessionid unset to a macro
Use a macro, "AUDIT_SID_UNSET", to replace each instance of
initialization and comparison to an audit session ID.
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include/linux/audit.h')
-rw-r--r-- | include/linux/audit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index b639cf1f55ff..2d15bce7aa3c 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h @@ -510,7 +510,7 @@ static inline kuid_t audit_get_loginuid(struct task_struct *tsk) } static inline unsigned int audit_get_sessionid(struct task_struct *tsk) { - return -1; + return AUDIT_SID_UNSET; } static inline void audit_ipc_obj(struct kern_ipc_perm *ipcp) { } |