mount: consolidate permission checks
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 23 Feb 2013 03:49:10 +0000 (22:49 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 23 Feb 2013 04:31:31 +0000 (23:31 -0500)
commit57eccb830f1cc93d4b506ba306d8dfa685e0c88f
treed3e2ad5e5b0df0907f93a381a68f92128d627088
parent9b40bc90abd126bcc5da5658059b8e72e285e559
mount: consolidate permission checks

... and ask for global CAP_SYS_ADMIN only for superblock-level remounts

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c