ipc: Remove extra1 field abuse to pass ipc namespace
authorAlexey Gladkov <legion@kernel.org>
Tue, 3 May 2022 13:39:55 +0000 (15:39 +0200)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 3 May 2022 22:25:58 +0000 (17:25 -0500)
commitdd141a4955d5ebbb3f4c7996796e86a3ac9ed57f
treeeee1b1fb3b8ac33b94b561ac0605bb75b599b892
parentdef7343ff03bbb36ce7a34dcb19cab599f0da446
ipc: Remove extra1 field abuse to pass ipc namespace

Eric Biederman pointed out that using .extra1 to pass ipc namespace
looks like an ugly hack and there is a better solution. We can get the
ipc_namespace using the .data field.

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