You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
userns: Convert tomoyo to use kuid and kgid where appropriate
Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
This commit is contained in:
@@ -925,7 +925,9 @@ static bool tomoyo_manager(void)
|
||||
|
||||
if (!tomoyo_policy_loaded)
|
||||
return true;
|
||||
if (!tomoyo_manage_by_non_root && (task->cred->uid || task->cred->euid))
|
||||
if (!tomoyo_manage_by_non_root &&
|
||||
(!uid_eq(task->cred->uid, GLOBAL_ROOT_UID) ||
|
||||
!uid_eq(task->cred->euid, GLOBAL_ROOT_UID)))
|
||||
return false;
|
||||
exe = tomoyo_get_exe();
|
||||
if (!exe)
|
||||
|
||||
Reference in New Issue
Block a user