summaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2022-01-26 11:40:24 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2022-01-26 11:40:24 +0300
commit48ee4835b73c48590d05a54730dc8037ebd39d3b (patch)
tree84180182d393033da452823cb974880a368e1766 /net/unix/sysctl_net_unix.c
parent5ec1cebd59300ddd26dbaa96c17c508764eef911 (diff)
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff)
downloadlinux-48ee4835b73c48590d05a54730dc8037ebd39d3b.tar.xz
Merge drm/drm-fixes into drm-misc-fixes
Backmerging drm/drm-fixes into drm-misc-fixes for v5.17-rc1. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
-rw-r--r--net/unix/sysctl_net_unix.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/unix/sysctl_net_unix.c b/net/unix/sysctl_net_unix.c
index c09bea89151b..01d44e2598e2 100644
--- a/net/unix/sysctl_net_unix.c
+++ b/net/unix/sysctl_net_unix.c
@@ -30,10 +30,6 @@ int __net_init unix_sysctl_register(struct net *net)
if (table == NULL)
goto err_alloc;
- /* Don't export sysctls to unprivileged users */
- if (net->user_ns != &init_user_ns)
- table[0].procname = NULL;
-
table[0].data = &net->unx.sysctl_max_dgram_qlen;
net->unx.ctl = register_net_sysctl(net, "net/unix", table);
if (net->unx.ctl == NULL)