diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2016-08-08 14:37:37 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2016-08-31 07:28:35 -0500 |
commit | 537f7ccb396804c6d0057b93ba8eb104ba44f851 (patch) | |
tree | 0fbb44ee9bb13aed8c9e3fedede97c07dcf2a4da /fs/mount.h | |
parent | 703286608a220d53584cca5986aad5305eec75ed (diff) | |
download | linux-537f7ccb396804c6d0057b93ba8eb104ba44f851.tar.gz linux-537f7ccb396804c6d0057b93ba8eb104ba44f851.tar.bz2 linux-537f7ccb396804c6d0057b93ba8eb104ba44f851.zip |
mntns: Add a limit on the number of mount namespaces.
v2: Fixed the very obvious lack of setting ucounts
on struct mnt_ns reported by Andrei Vagin, and the kbuild
test report.
Reported-by: Andrei Vagin <avagin@openvz.org>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/mount.h')
-rw-r--r-- | fs/mount.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/mount.h b/fs/mount.h index 14db05d424f7..e037981d8351 100644 --- a/fs/mount.h +++ b/fs/mount.h @@ -10,6 +10,7 @@ struct mnt_namespace { struct mount * root; struct list_head list; struct user_namespace *user_ns; + struct ucounts *ucounts; u64 seq; /* Sequence number to prevent loops */ wait_queue_head_t poll; u64 event; |