fs: Allow CAP_SYS_ADMIN in s_user_ns to freeze and thaw filesystems
authorSeth Forshee <seth.forshee@canonical.com>
Sun, 15 Feb 2015 20:35:35 +0000 (14:35 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 24 May 2018 17:04:28 +0000 (12:04 -0500)
commitf3f1a18330ac1b717cd7a32adff38d965f365aa2
tree9dc33f121860883e67be6e677099010659828fa1
parentb1d749c5c34112fab5902c43b2a37a0ba1e5f0f1
fs: Allow CAP_SYS_ADMIN in s_user_ns to freeze and thaw filesystems

The user in control of a super block should be allowed to freeze
and thaw it. Relax the restrictions on the FIFREEZE and FITHAW
ioctls to require CAP_SYS_ADMIN in s_user_ns.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Christian Brauner <christian@brauner.io>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/ioctl.c