Commit 04f87018 authored by Yi Yang's avatar Yi Yang
Browse files

audit: kabi: KABI reservation for audit

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8WCAR



--------------------------------

Reserve space for audit module in advance to prepare for merging new
feature in the future.

Signed-off-by: default avatarYi Yang <yiyang13@huawei.com>
parent 2212880a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
#include <uapi/linux/mqueue.h>
#include <linux/tty.h>
#include <uapi/linux/openat2.h> // struct open_how
#include <linux/kabi.h>

/* AUDIT_NAMES is the number of slots we reserve in the audit_context
 * for saving names from getname().  If we get more names we will allocate
@@ -208,6 +209,8 @@ struct audit_context {
	};
	int fds[2];
	struct audit_proctitle proctitle;
	KABI_RESERVE(0);
	KABI_RESERVE(1);
};

extern bool audit_ever_enabled;