ANDROID: Fixup init_user_ns CRC change

The previous patch, by including the new trace/hooks/users.h file
causes other heads to be included which sligtly change the
declaration typing info for a number types to not be opaque types.

This results in the struct user_namespace init_user_ns value
to get a different CRC result.

To address this, use the ANDROID_KABI_DECLONLY macro to clarify
the affected types are only considered to be delared.

This can hopefully be dropped during a future KABI thaw.

Bug: 425550656
Change-Id: I18c463535b04e766777f7ebb8115fedf8e8f0c00
Signed-off-by: John Stultz <jstultz@google.com>
This commit is contained in:
John Stultz
2025-07-01 23:44:43 +00:00
parent 4e873ad607
commit 55972ed83a

View File

@@ -22,6 +22,17 @@
#include <linux/proc_ns.h>
#include <trace/hooks/user.h>
#include <linux/android_kabi.h>
ANDROID_KABI_DECLONLY(address_space);
ANDROID_KABI_DECLONLY(cred);
ANDROID_KABI_DECLONLY(dentry);
ANDROID_KABI_DECLONLY(file);
ANDROID_KABI_DECLONLY(io_context);
ANDROID_KABI_DECLONLY(module);
ANDROID_KABI_DECLONLY(pid);
ANDROID_KABI_DECLONLY(sighand_struct);
ANDROID_KABI_DECLONLY(signal_struct);
#if IS_ENABLED(CONFIG_BINFMT_MISC)
struct binfmt_misc init_binfmt_misc = {