Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352843
b: refs/heads/master
c: a175b8b
h: refs/heads/master
i:
  352841: b368b3b
  352839: 7417e0a
v: v3
  • Loading branch information
Dmitry Kasatkin authored and Mimi Zohar committed Jan 16, 2013
1 parent de055ef commit 866d259
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea1046d4c57ee6e3d5f68f19dd9a45bbab0b71a0
refs/heads/master: a175b8bb29ebbad380ab4788f307fbfc47997b19
7 changes: 5 additions & 2 deletions trunk/security/integrity/ima/ima_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ static int process_measurement(struct file *file, const char *filename,
if (!action) {
if (iint->flags & IMA_APPRAISED)
rc = iint->ima_status;
goto out;
goto out_digsig;
}

rc = ima_collect_measurement(iint, file);
if (rc != 0)
goto out;
goto out_digsig;

if (function != BPRM_CHECK)
pathname = ima_d_path(&file->f_path, &pathbuf);
Expand All @@ -195,6 +195,9 @@ static int process_measurement(struct file *file, const char *filename,
if (action & IMA_AUDIT)
ima_audit_measurement(iint, pathname);
kfree(pathbuf);
out_digsig:
if ((mask & MAY_WRITE) && (iint->flags & IMA_DIGSIG))
rc = -EACCES;
out:
mutex_unlock(&inode->i_mutex);
if ((rc && must_appraise) && (ima_appraise & IMA_APPRAISE_ENFORCE))
Expand Down

0 comments on commit 866d259

Please sign in to comment.