From: Munehisa Kamata Date: Thu, 7 Dec 2023 01:33:56 +0000 (+0000) Subject: selinux: remove the wrong comment about multithreaded process handling X-Git-Tag: v6.8-rc1~177^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c1e09d533dba45af8b4681f005c9b5807f9b182;p=thirdparty%2Fkernel%2Flinux.git selinux: remove the wrong comment about multithreaded process handling Since commit d9250dea3f89 ("SELinux: add boundary support and thread context assignment"), SELinux has been supporting assigning per-thread security context under a constraint and the comment was updated accordingly. However, seems like commit d84f4f992cbd ("CRED: Inaugurate COW credentials") accidentally brought the old comment back that doesn't match what the code does. Considering the ease of understanding the code, this patch just removes the wrong comment. Fixes: d84f4f992cbd ("CRED: Inaugurate COW credentials") Signed-off-by: Munehisa Kamata Signed-off-by: Paul Moore --- diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 855589b64641e..863ff67e78497 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -6459,7 +6459,6 @@ static int selinux_setprocattr(const char *name, void *value, size_t size) if (sid == 0) goto abort_change; - /* Only allow single threaded processes to change context */ if (!current_is_single_threaded()) { error = security_bounded_transition(tsec->sid, sid); if (error)