愛莉希雅小姐嘅惠禮 (#226)

This commit is contained in:
愛莉希雅
2025-06-28 14:43:59 +08:00
committed by GitHub
parent 0c3049ec03
commit 4908e3b633
3 changed files with 13 additions and 0 deletions

View File

@@ -181,9 +181,17 @@ DYNAMIC_STRUCT_BEGIN(task_struct)
DEFINE_MEMBER(task_struct, cgroups)
#endif
#ifdef CONFIG_SECURITY
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0))
DEFINE_MEMBER(task_struct, security)
#else
DEFINE_MEMBER(task_struct, cred)
#endif
#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0))
DEFINE_MEMBER(task_struct, thread)
#else
DEFINE_MEMBER(task_struct, thread_info)
#endif
DYNAMIC_STRUCT_END(task_struct)
// =====================================================================================================================