summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorMunehisa Kamata <kamatam@amazon.com>2023-12-07 01:33:56 +0000
committerPaul Moore <paul@paul-moore.com>2023-12-07 12:46:56 -0500
commit3c1e09d533dba45af8b4681f005c9b5807f9b182 (patch)
treeca9b3f5935187abb2c64794ac743995e3fe8ead3 /security
parentae254858ce0745aba25d107159b580ab5fdada5b (diff)
downloadlwn-3c1e09d533dba45af8b4681f005c9b5807f9b182.tar.gz
lwn-3c1e09d533dba45af8b4681f005c9b5807f9b182.zip
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 <kamatam@amazon.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security')
-rw-r--r--security/selinux/hooks.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 855589b64641..863ff67e7849 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)