fix: mark tif (#2871)

This commit is contained in:
Ylarod
2025-11-06 09:38:10 +08:00
committed by ShirkNeko
parent 71353a70d4
commit dcbc014039
7 changed files with 26 additions and 17 deletions

View File

@@ -58,7 +58,7 @@ bool always_allow(void)
bool allowed_for_su(void)
{
bool is_allowed = is_manager() || ksu_is_allow_uid(current_uid().val);
bool is_allowed = is_manager() || ksu_is_allow_uid_for_current(current_uid().val);
#if __SULOG_GATE
ksu_sulog_report_permission_check(current_uid().val, current->comm, is_allowed);
#endif
@@ -233,7 +233,7 @@ static int do_uid_granted_root(void __user *arg)
return -EFAULT;
}
cmd.granted = ksu_is_allow_uid(cmd.uid);
cmd.granted = ksu_is_allow_uid_for_current(cmd.uid);
if (copy_to_user(arg, &cmd, sizeof(cmd))) {
pr_err("uid_granted_root: copy_to_user failed\n");