]> git.baikalelectronics.ru Git - kernel.git/commit
exec: remove unnecessary check for MNT_NOEXEC
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 17 Oct 2007 06:27:08 +0000 (23:27 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:52 +0000 (08:42 -0700)
commit9a6374e1d91829bf4baed6c210534d3c2f53e549
tree25d7596b718b37dccedc1a4486e4afc45e29a772
parente862235be912b6ac28bf129cffb2cd21ae304a4a
exec: remove unnecessary check for MNT_NOEXEC

vfs_permission(MAY_EXEC) checks if the filesystem is mounted with "noexec", so
there's no need to repeat this check in sys_uselib() and open_exec().

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/exec.c