From: Andrew Morton Cc: "Eric W. Biederman" Cc: Al Viro Cc: Christoph Hellwig Cc: Miklos Szeredi Cc: Serge Hallyn Cc: Ram Pai Signed-off-by: Andrew Morton --- include/linux/sysctl.h | 2 -- kernel/sysctl.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff -puN include/linux/sysctl.h~unprivileged-mounts-account-user-mounts-fix include/linux/sysctl.h --- a/include/linux/sysctl.h~unprivileged-mounts-account-user-mounts-fix +++ a/include/linux/sysctl.h @@ -819,8 +819,6 @@ enum FS_AIO_NR=18, /* current system-wide number of aio requests */ FS_AIO_MAX_NR=19, /* system-wide maximum number of aio requests */ FS_INOTIFY=20, /* inotify submenu */ - FS_NR_USER_MOUNTS=21, /* int:current number of user mounts */ - FS_MAX_USER_MOUNTS=22, /* int:maximum number of user mounts */ FS_OCFS2=988, /* ocfs2 */ }; diff -puN kernel/sysctl.c~unprivileged-mounts-account-user-mounts-fix kernel/sysctl.c --- a/kernel/sysctl.c~unprivileged-mounts-account-user-mounts-fix +++ a/kernel/sysctl.c @@ -1028,7 +1028,7 @@ static ctl_table fs_table[] = { #endif #endif { - .ctl_name = FS_NR_USER_MOUNTS, + .ctl_name = CTL_UNNUMBERED, .procname = "nr_user_mounts", .data = &nr_user_mounts, .maxlen = sizeof(int), @@ -1036,7 +1036,7 @@ static ctl_table fs_table[] = { .proc_handler = &proc_dointvec, }, { - .ctl_name = FS_MAX_USER_MOUNTS, + .ctl_name = CTL_UNNUMBERED, .procname = "max_user_mounts", .data = &max_user_mounts, .maxlen = sizeof(int), _