Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221749
b: refs/heads/master
c: a26d279
h: refs/heads/master
i:
  221747: a8cc2ed
v: v3
  • Loading branch information
wzt.wzt@gmail.com authored and James Morris committed Nov 10, 2010
1 parent f8b10c0 commit d9c80b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 246c3fb16b08193837a8009ff15ef6908534ba71
refs/heads/master: a26d279ea87e9fef2cf8a44b371e48e6091975a6
6 changes: 4 additions & 2 deletions trunk/security/apparmor/lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ static int __init apparmor_init(void)
error = register_security(&apparmor_ops);
if (error) {
AA_ERROR("Unable to register AppArmor\n");
goto register_security_out;
goto set_init_cxt_out;
}

/* Report that AppArmor successfully initialized */
Expand All @@ -936,6 +936,9 @@ static int __init apparmor_init(void)

return error;

set_init_cxt_out:
aa_free_task_context(current->real_cred->security);

register_security_out:
aa_free_root_ns();

Expand All @@ -944,7 +947,6 @@ static int __init apparmor_init(void)

apparmor_enabled = 0;
return error;

}

security_initcall(apparmor_init);

0 comments on commit d9c80b3

Please sign in to comment.