From ee97fdfc56f95c8504994e1f92fd73a5f4a99897 Mon Sep 17 00:00:00 2001 From: weishu Date: Sun, 4 Jun 2023 15:20:48 +0800 Subject: [PATCH] kernel: add more capailities --- kernel/ksu.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kernel/ksu.h b/kernel/ksu.h index 2af94bd0..98f44d9d 100644 --- a/kernel/ksu.h +++ b/kernel/ksu.h @@ -48,7 +48,13 @@ struct root_profile { int32_t groups[KSU_MAX_GROUPS]; int32_t groups_count; - kernel_cap_t capabilities; + // kernel_cap_t is u32[2] for capabilities v3 + struct { + u64 effective; + u64 permitted; + u64 inheritable; + } capabilities; + char selinux_domain[KSU_SELINUX_DOMAIN]; int32_t namespaces;