fix: mark tif (#2871)

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

View File

@@ -543,7 +543,7 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old)
return 0;
}
if (ksu_is_allow_uid(new_uid.val)) {
if (ksu_is_allow_uid_for_current(new_uid.val)) {
if (current->seccomp.mode == SECCOMP_MODE_FILTER &&
current->seccomp.filter) {
spin_lock_irq(&current->sighand->siglock);