mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
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:
parent
326bee0286
commit
f0b752168d
5 changed files with 7 additions and 5 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <linux/init.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/audit.h>
|
||||
|
||||
#include <asm/pgtable.h>
|
||||
#include <linux/uaccess.h>
|
||||
|
@ -119,7 +120,7 @@ struct task_struct init_task
|
|||
.thread_node = LIST_HEAD_INIT(init_signals.thread_head),
|
||||
#ifdef CONFIG_AUDITSYSCALL
|
||||
.loginuid = INVALID_UID,
|
||||
.sessionid = (unsigned int)-1,
|
||||
.sessionid = AUDIT_SID_UNSET,
|
||||
#endif
|
||||
#ifdef CONFIG_PERF_EVENTS
|
||||
.perf_event_mutex = __MUTEX_INITIALIZER(init_task.perf_event_mutex),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue