WSL2-Linux-Kernel/fs/sysfs
Eric W. Biederman 29a517c232 kernfs: The cgroup filesystem also benefits from SB_I_NOEXEC
The cgroup filesystem is in the same boat as sysfs.  No one ever
permits executables of any kind on the cgroup filesystem, and there is
no reasonable future case to support executables in the future.

Therefore move the setting of SB_I_NOEXEC which makes the code proof
against future mistakes of accidentally creating executables from
sysfs to kernfs itself.  Making the code simpler and covering the
sysfs, cgroup, and cgroup2 filesystems.

Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2016-06-23 15:41:56 -05:00
..
Kconfig
Makefile
dir.c sysfs: Add support for permanently empty directories to serve as mount points. 2015-07-01 10:36:45 -05:00
file.c sysfs: correctly handle short reads on PREALLOC attrs. 2015-10-04 19:42:22 +01:00
group.c platform/chrome: Branch for v4.4 2015-11-13 21:53:18 -08:00
mount.c kernfs: The cgroup filesystem also benefits from SB_I_NOEXEC 2016-06-23 15:41:56 -05:00
symlink.c
sysfs.h