diff options
Diffstat (limited to 'security/commoncap.c')
-rw-r--r-- | security/commoncap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/commoncap.c b/security/commoncap.c index 7ee08c756d6b..c44b6fe6648e 100644 --- a/security/commoncap.c +++ b/security/commoncap.c | |||
@@ -440,7 +440,7 @@ static int get_file_caps(struct linux_binprm *bprm, bool *effective, bool *has_c | |||
440 | if (!file_caps_enabled) | 440 | if (!file_caps_enabled) |
441 | return 0; | 441 | return 0; |
442 | 442 | ||
443 | if (bprm->file->f_vfsmnt->mnt_flags & MNT_NOSUID) | 443 | if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) |
444 | return 0; | 444 | return 0; |
445 | 445 | ||
446 | dentry = dget(bprm->file->f_dentry); | 446 | dentry = dget(bprm->file->f_dentry); |