]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
fix sysfs_init_fs_context() in !CONFIG_NET_NS case
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 16 Mar 2019 13:45:42 +0000 (09:45 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 16 Mar 2019 13:45:42 +0000 (09:45 -0400)
commitab81dabda1d4edc1728173be6c6a279455f220e3
tree05d94edf3d7c011e1d9661af01b53f57c30a4ff4
parentc99c2171fc61476afac0dfb59fb2c447a01fb1e0
fix sysfs_init_fs_context() in !CONFIG_NET_NS case

Permission checks on current's netns should be done only when
netns are enabled.

Reported-by: Dominik Brodowski <linux@dominikbrodowski.net>
Fixes: 23bf1b6be9c2
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/sysfs/mount.c