Revert "sctp: sysctl: auth_enable: avoid using current->nsproxy"

This reverts commit 10c869a52f as it
was backported incorrectly.
A subsequent commit will re-backport the original patch.

Signed-off-by: Magali Lemes <magali.lemes@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Magali Lemes 2025-03-11 15:54:25 -03:00 • committed by Greg Kroah-Hartman
commit 19573dcddb

View file

@ -326,7 +326,7 @@ static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write,
void __user *buffer, size_t *lenp,
loff_t *ppos)
{
struct net *net = container_of(ctl->data, struct net, sctp.auth_enable);
struct net *net = current->nsproxy->net_ns;
struct ctl_table tbl;
bool changed = false;
char *none = "none";