[skip ci] kernel: restore original from_root logic

This commit is contained in:
Faris
2025-10-03 19:34:11 +07:00
committed by ShirkNeko
parent 6af2da13ae
commit f05b20dbce

View File

@@ -327,8 +327,7 @@ skip_check:
if (KERNEL_SU_OPTION != option)
return 0;
// just continue old logic
bool from_root = !current_uid().val;
bool from_root = 0 == current_uid().val;
bool from_manager = is_manager();
if (!from_root && !from_manager) {