Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276485
b: refs/heads/master
c: 1418a3e
h: refs/heads/master
i:
  276483: 8f802f7
v: v3
  • Loading branch information
Tetsuo Handa authored and Linus Torvalds committed Dec 8, 2011
1 parent dbf165c commit 150579c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 34a9d2c39afe74a941b9e88efe2762afc4d82443
refs/heads/master: 1418a3e5ad4d01b1d4abf2c479c50b0cedd59e3f
10 changes: 9 additions & 1 deletion trunk/security/tomoyo/realpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,16 @@ char *tomoyo_realpath_from_path(struct path *path)
pos = tomoyo_get_local_path(path->dentry, buf,
buf_len - 1);
/* Get absolute name for the rest. */
else
else {
pos = tomoyo_get_absolute_path(path, buf, buf_len - 1);
/*
* Fall back to local name if absolute name is not
* available.
*/
if (pos == ERR_PTR(-EINVAL))
pos = tomoyo_get_local_path(path->dentry, buf,
buf_len - 1);
}
encode:
if (IS_ERR(pos))
continue;
Expand Down

0 comments on commit 150579c

Please sign in to comment.