aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/commoncap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/security/commoncap.c b/security/commoncap.c
index 3976613db829..f88119cb2bc2 100644
--- a/security/commoncap.c
+++ b/security/commoncap.c
@@ -281,6 +281,9 @@ static int get_file_caps(struct linux_binprm *bprm)
281 281
282 bprm_clear_caps(bprm); 282 bprm_clear_caps(bprm);
283 283
284 if (!file_caps_enabled)
285 return 0;
286
284 if (bprm->file->f_vfsmnt->mnt_flags & MNT_NOSUID) 287 if (bprm->file->f_vfsmnt->mnt_flags & MNT_NOSUID)
285 return 0; 288 return 0;
286 289