From: Felix Fu fuzhen5@huawei.com
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8SWXZ
--------------------------------
KABI reservation for LSM audit module.
Signed-off-by: Felix Fu fuzhen5@huawei.com --- include/linux/audit.h | 1 + kernel/audit.h | 3 +++ 2 files changed, 4 insertions(+)
diff --git a/include/linux/audit.h b/include/linux/audit.h index 51b1b7054a23..1056d79de4ad 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h @@ -120,6 +120,7 @@ enum audit_nfcfgop { AUDIT_NFT_OP_SETELEM_RESET, AUDIT_NFT_OP_RULE_RESET, AUDIT_NFT_OP_INVALID, + KABI_RESERVE0, };
extern int __init audit_register_class(int class, unsigned *list); diff --git a/kernel/audit.h b/kernel/audit.h index a60d2840559e..81e241039fd6 100644 --- a/kernel/audit.h +++ b/kernel/audit.h @@ -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;