Commit 20d198eb authored by Long Li's avatar Long Li
Browse files

xattr: kabi: Reserve KABI slots for xattr_handler struct

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


CVE: NA

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

Add kabi slots in xattr_handler struct for future expansion.

struct			size(byte)	reserve(8*byte)	now(byte)
xattr_handler		48		2		64

Signed-off-by: default avatarLong Li <leo.lilong@huawei.com>
parent 50dfec9d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
#ifndef _LINUX_XATTR_H
#define _LINUX_XATTR_H


#include <linux/kabi.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/spinlock.h>
@@ -45,6 +45,9 @@ struct xattr_handler {
		   struct mnt_idmap *idmap, struct dentry *dentry,
		   struct inode *inode, const char *name, const void *buffer,
		   size_t size, int flags);

	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

/**