aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2015-07-28 14:08:28 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2015-07-28 14:08:28 +1000
commit0e4ed9b99488c47a0cd1fd50c689be8c9146157c (patch)
tree9e4cdb0938e07bfb67ad7bfc00864cfeb43f08d2 /security
parente14b1f487375ecf9a096aadc66bb0c5eb4c165e0 (diff)
parent75509fd88fbd580c793780b0001c71c3510f2726 (diff)
Merge remote-tracking branch 'userns/for-next'
Diffstat (limited to 'security')
-rw-r--r--security/security.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/security.c b/security/security.c
index 595fffab48b0..062f3c997fdc 100644
--- a/security/security.c
+++ b/security/security.c
@@ -776,7 +776,7 @@ static inline unsigned long mmap_prot(struct file *file, unsigned long prot)
* ditto if it's not on noexec mount, except that on !MMU we need
* NOMMU_MAP_EXEC (== VM_MAYEXEC) in this case
*/
- if (!(file->f_path.mnt->mnt_flags & MNT_NOEXEC)) {
+ if (!path_noexec(&file->f_path)) {
#ifndef CONFIG_MMU
if (file->f_op->mmap_capabilities) {
unsigned caps = file->f_op->mmap_capabilities(file);