diff options
Diffstat (limited to 'security/integrity')
-rw-r--r-- | security/integrity/ima/ima_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c index 1eff5cb001e5..b17be79b9cf2 100644 --- a/security/integrity/ima/ima_main.c +++ b/security/integrity/ima/ima_main.c | |||
@@ -194,7 +194,9 @@ int ima_bprm_check(struct linux_binprm *bprm) | |||
194 | { | 194 | { |
195 | int rc; | 195 | int rc; |
196 | 196 | ||
197 | rc = process_measurement(bprm->file, bprm->filename, | 197 | rc = process_measurement(bprm->file, |
198 | (strcmp(bprm->filename, bprm->interp) == 0) ? | ||
199 | bprm->filename : bprm->interp, | ||
198 | MAY_EXEC, BPRM_CHECK); | 200 | MAY_EXEC, BPRM_CHECK); |
199 | return 0; | 201 | return 0; |
200 | } | 202 | } |