Commit 9b22326d 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 2b2cac53
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -41,12 +41,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)
#ifdef __alpha__
	unsigned int taso:1;
#endif
+1 −1
Original line number Diff line number Diff line
@@ -187,7 +187,7 @@ struct audit_context {
		} mmap;
		struct {
			int			argc;
			bool                    is_check;
			KABI_FILL_HOLE(bool is_check)
		} execve;
		struct {
			char			*name;