check privileges before setting mount propagation
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 8 May 2007 07:30:40 +0000 (00:30 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:12 +0000 (11:15 -0700)
commitee6f958291e2a768fd727e7a67badfff0b67711a
tree1313cb3a5d50a296b1801022f904f3a5e9601de2
parent2f1a2ccb9c0de632ab07193becf5f7121794f6ae
check privileges before setting mount propagation

There's a missing check for CAP_SYS_ADMIN in do_change_type().

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/namespace.c