Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146425
b: refs/heads/master
c: f06dd16
h: refs/heads/master
i:
  146423: d49f0b1
v: v3
  • Loading branch information
Eric Paris authored and James Morris committed May 12, 2009
1 parent cfcbf53 commit 77e93ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 37bcbf13d32e4e453e9def79ee72bd953b88302f
refs/heads/master: f06dd16a03f6f7f72fab4db03be36e28c28c6fd6
10 changes: 6 additions & 4 deletions trunk/security/integrity/ima/ima_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ static int get_path_measurement(struct ima_iint_cache *iint, struct file *file,
{
int rc = 0;

if (IS_ERR(file)) {
pr_info("%s dentry_open failed\n", filename);
return rc;
}
iint->opencount++;
iint->readcount++;

Expand Down Expand Up @@ -185,6 +181,12 @@ int ima_path_check(struct path *path, int mask)
struct vfsmount *mnt = mntget(path->mnt);

file = dentry_open(dentry, mnt, O_RDONLY, current_cred());
if (IS_ERR(file)) {
pr_info("%s dentry_open failed\n", dentry->d_name.name);
rc = PTR_ERR(file);
file = NULL;
goto out;
}
rc = get_path_measurement(iint, file, dentry->d_name.name);
}
out:
Expand Down

0 comments on commit 77e93ca

Please sign in to comment.