Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184893
b: refs/heads/master
c: 67fa488
h: refs/heads/master
i:
  184891: 11d1c00
v: v3
  • Loading branch information
Tetsuo Handa authored and James Morris committed Dec 9, 2009
1 parent dd4ad9e commit 61666dd
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 1ad1f10cd915744bbe52b19423653b38287d827d
refs/heads/master: 67fa4880c5e059428392ca6f7c2f9c38e8546fea
3 changes: 2 additions & 1 deletion trunk/security/tomoyo/realpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/mnt_namespace.h>
#include <linux/fs_struct.h>
#include <linux/hash.h>
#include <linux/magic.h>

#include "common.h"
#include "realpath.h"
Expand Down Expand Up @@ -112,7 +113,7 @@ int tomoyo_realpath_from_path2(struct path *path, char *newname,
path_put(&ns_root);
/* Prepend "/proc" prefix if using internal proc vfs mount. */
if (!IS_ERR(sp) && (path->mnt->mnt_parent == path->mnt) &&
(strcmp(path->mnt->mnt_sb->s_type->name, "proc") == 0)) {
(path->mnt->mnt_sb->s_magic == PROC_SUPER_MAGIC)) {
sp -= 5;
if (sp >= newname)
memcpy(sp, "/proc", 5);
Expand Down

0 comments on commit 61666dd

Please sign in to comment.