Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132631
b: refs/heads/master
c: e5a3b95
h: refs/heads/master
i:
  132629: 128b597
  132627: 04837d9
  132623: 69a2550
v: v3
  • Loading branch information
Tetsuo Handa authored and James Morris committed Feb 15, 2009
1 parent e89fb37 commit 5be47ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 33043cbb9fd49a957089f5948fe814764d7abbd6
refs/heads/master: e5a3b95f581da62e2054ef79d3be2d383e9ed664
4 changes: 4 additions & 0 deletions trunk/security/tomoyo/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -2177,6 +2177,10 @@ static int __init tomoyo_initerface_init(void)
{
struct dentry *tomoyo_dir;

/* Don't create securityfs entries unless registered. */
if (current_cred()->security != &tomoyo_kernel_domain)
return 0;

tomoyo_dir = securityfs_create_dir("tomoyo", NULL);
tomoyo_create_entry("domain_policy", 0600, tomoyo_dir,
TOMOYO_DOMAINPOLICY);
Expand Down

0 comments on commit 5be47ce

Please sign in to comment.