diff --git a/kernel/routine.h b/kernel/routine.h index 896a881..26c6a7f 100644 --- a/kernel/routine.h +++ b/kernel/routine.h @@ -62,6 +62,7 @@ static __always_inline bool getpriority_should_swap(int who) if (ns && ns != init_ns_p()) { kuid_t host_kuid = make_kuid(ns, 0); + if (uid_valid(host_kuid)) cuid = from_kuid(init_ns_p(), host_kuid); } }