Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292301
b: refs/heads/master
c: fbba8d8
h: refs/heads/master
i:
  292299: 5372bc3
v: v3
  • Loading branch information
John Johansen committed Mar 14, 2012
1 parent 9a6b287 commit f9611ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 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: 33e521acff709d275950ec5bf8dd577d873cd61e
refs/heads/master: fbba8d89acea5d628d1d076b1d8962db438ff832
15 changes: 9 additions & 6 deletions trunk/security/apparmor/path.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,21 @@ static int d_namespace_path(struct path *path, char *buf, int buflen,
} else
res = d_absolute_path(path, buf, buflen);

*name = res;
/* handle error conditions - and still allow a partial path to
* be returned.
*/
if (IS_ERR(res)) {
error = PTR_ERR(res);
*name = buf;
goto out;
}
if (!our_mnt(path->mnt))
res = dentry_path_raw(path->dentry, buf, buflen);
if (IS_ERR(res)) {
error = PTR_ERR(res);
*name = buf;
goto out;
};
} else if (!our_mnt(path->mnt))
connected = 0;

*name = res;

ok:
/* Handle two cases:
* 1. A deleted dentry && profile is not allowing mediation of deleted
Expand Down

0 comments on commit f9611ac

Please sign in to comment.