X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=fs%2Fopen.c;h=b6f1e96a7c0b331b3e5a5d9bb4c014c5c9edc54b;hb=dd5cdb48edfd34401799056a9acf61078d773f90;hp=e33dab287fa00a3d1d657e4b2d23c1f74529ae72;hpb=4d341056202a4725777ed99897f6456405819cd4;p=deliverable%2Flinux.git diff --git a/fs/open.c b/fs/open.c index e33dab287fa0..b6f1e96a7c0b 100644 --- a/fs/open.c +++ b/fs/open.c @@ -377,7 +377,7 @@ retry: * with the "noexec" flag. */ res = -EACCES; - if (path.mnt->mnt_flags & MNT_NOEXEC) + if (path_noexec(&path)) goto out_path_release; }