]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/exec.c
sysfs: implement sysfs_get_dentry()
[linux-2.6-omap-h63xx.git] / fs / exec.c
index 0b685888ff6f9b1c51c860191828adbde4950fe6..f20561ff4528f21ad7a36d35d56513346c5f740b 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -134,6 +134,9 @@ asmlinkage long sys_uselib(const char __user * library)
        if (error)
                goto out;
 
+       error = -EACCES;
+       if (nd.mnt->mnt_flags & MNT_NOEXEC)
+               goto exit;
        error = -EINVAL;
        if (!S_ISREG(nd.dentry->d_inode->i_mode))
                goto exit;