From 636efe68fd0748a7ff132a79e91d6ed04c0f69ef Mon Sep 17 00:00:00 2001 From: Fabing Li Date: Thu, 5 Dec 2024 07:49:23 +0000 Subject: [PATCH] Give root process a full capability set --- kernel/src/process/credentials/capabilities.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/src/process/credentials/capabilities.rs b/kernel/src/process/credentials/capabilities.rs index 6a8e0736f..553d588db 100644 --- a/kernel/src/process/credentials/capabilities.rs +++ b/kernel/src/process/credentials/capabilities.rs @@ -61,9 +61,9 @@ impl CapSet { self.bits() as u32 } - /// Creates a new `CapSet` with the `SYS_ADMIN` capability set, typically for a root user. + /// Creates a new `CapSet` with a full capability set, typically for a root user. pub const fn new_root() -> Self { - CapSet::SYS_ADMIN + CapSet::all() } /// The most significant bit in a 64-bit `CapSet` that may be set to represent a Linux capability.