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>
This commit is contained in:

committed by
Paul Moore

parent
326bee0286
commit
f0b752168d
@@ -751,7 +751,7 @@ static inline void xfrm_audit_helper_usrinfo(bool task_valid,
|
||||
audit_get_loginuid(current) :
|
||||
INVALID_UID);
|
||||
const unsigned int ses = task_valid ? audit_get_sessionid(current) :
|
||||
(unsigned int) -1;
|
||||
AUDIT_SID_UNSET;
|
||||
|
||||
audit_log_format(audit_buf, " auid=%u ses=%u", auid, ses);
|
||||
audit_log_task_context(audit_buf);
|
||||
|
Reference in New Issue
Block a user