Commit 4f607039 authored by Gu Bowen's avatar Gu Bowen
Browse files

fix kabi breakage due to exec is_check

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


CVE: NA

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

Since struct audit_context and linux_binprm contains hole at the end, we
can directly add one list without breaking KABI.

Signed-off-by: default avatarGu Bowen <gubowen5@huawei.com>
parent b89997c5
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -42,12 +42,12 @@ struct linux_binprm {
		 * Set when errors can no longer be returned to the
		 * original userspace.
		 */
		point_of_no_return:1,
		point_of_no_return:1;
	/*
	 * Set by user space to check executability according to the
	 * caller's environment.
	 */
		is_check:1;
	KABI_FILL_HOLE(unsigned int is_check:1)
	struct file *executable; /* Executable to pass to the interpreter */
	struct file *interpreter;
	struct file *file;
+1 −1
Original line number Diff line number Diff line
@@ -198,7 +198,7 @@ struct audit_context {
		struct open_how openat2;
		struct {
			int			argc;
			bool                    is_check;
			KABI_FILL_HOLE(bool is_check)
		} execve;
		struct {
			char			*name;