Kernel: Add support for 6.12
Filtered from tiann/KernelSU #2793 Co-authored-by: libingxuan <84086386+aaaaaaaa-815@users.noreply.github.com>
This commit is contained in:
@@ -81,7 +81,11 @@ static inline bool is_unsupported_uid(uid_t uid)
|
||||
return appid > LAST_APPLICATION_UID;
|
||||
}
|
||||
|
||||
static struct group_info root_groups = { .usage = ATOMIC_INIT(2) };
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION (6, 7, 0)
|
||||
static struct group_info root_groups = { .usage = REFCOUNT_INIT(2), };
|
||||
#else
|
||||
static struct group_info root_groups = { .usage = ATOMIC_INIT(2) };
|
||||
#endif
|
||||
|
||||
static void setup_groups(struct root_profile *profile, struct cred *cred)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user