From b6430e3f83c8ca4c6e73fe483892b59b4b66a7c7 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Wed, 30 Aug 2006 00:33:36 +0000 Subject: [PATCH] properly set return code for changehat interface --- module-nextgen/apparmor/procattr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/module-nextgen/apparmor/procattr.c b/module-nextgen/apparmor/procattr.c index 11708c60a..09f2a1be4 100644 --- a/module-nextgen/apparmor/procattr.c +++ b/module-nextgen/apparmor/procattr.c @@ -159,6 +159,7 @@ int aa_setprocattr_changehat(char *hatinfo, size_t infosize) error = aa_change_hat(hat, magic); spin_unlock_irqrestore(&sd_lock, flags); + error = 0; out: if (token) { memset(token, 0, infosize);