X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=security%2Fcommoncap.c;h=2915d8503054c0e41e5bc4de2103f0dad4026371;hb=be10f60d29433f712bf0887431efb80975e64438;hp=bab0611afc1eed309a04f9cf2ee05575ea98fc9d;hpb=59e25676cf78c2ff41228820c1c2382387850154;p=mirror_ubuntu-artful-kernel.git diff --git a/security/commoncap.c b/security/commoncap.c index bab0611afc1e..2915d8503054 100644 --- a/security/commoncap.c +++ b/security/commoncap.c @@ -446,7 +446,7 @@ static int get_file_caps(struct linux_binprm *bprm, bool *effective, bool *has_c if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) return 0; - dentry = dget(bprm->file->f_dentry); + dentry = dget(bprm->file->f_path.dentry); rc = get_vfs_caps_from_disk(dentry, &vcaps); if (rc < 0) {