ipc: Use the same namespace to modify and validate
authorAlexey Gladkov <legion@kernel.org>
Tue, 3 May 2022 13:39:54 +0000 (15:39 +0200)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 3 May 2022 22:25:58 +0000 (17:25 -0500)
commitdef7343ff03bbb36ce7a34dcb19cab599f0da446
tree8062c83e408b4a3a215104a3fd15271fd2ee0441
parent1f5c135ee509e89e0cc274333a65f73c62cb16e5
ipc: Use the same namespace to modify and validate

In the 1f5c135ee509 ("ipc: Store ipc sysctls in the ipc namespace") I
missed that in addition to the modification of sem_ctls[3], the change
is validated. This validation must occur in the same namespace.

Link: https://lore.kernel.org/lkml/875ymnvryb.fsf@email.froward.int.ebiederm.org/
Fixes: 1f5c135ee509 ("ipc: Store ipc sysctls in the ipc namespace")
Signed-off-by: Alexey Gladkov <legion@kernel.org>
Link: https://lkml.kernel.org/r/b3cb9a25cce6becbef77186bc1216071a08a969b.1651584847.git.legion@kernel.org
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
ipc/ipc_sysctl.c