diff options
Diffstat (limited to 'security/apparmor/lib.c')
-rw-r--r-- | security/apparmor/lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/apparmor/lib.c b/security/apparmor/lib.c index 66475bda6f72..32cafc12593e 100644 --- a/security/apparmor/lib.c +++ b/security/apparmor/lib.c | |||
@@ -180,13 +180,13 @@ bool aa_policy_init(struct aa_policy *policy, const char *prefix, | |||
180 | } else | 180 | } else |
181 | policy->hname = kstrdup(name, gfp); | 181 | policy->hname = kstrdup(name, gfp); |
182 | if (!policy->hname) | 182 | if (!policy->hname) |
183 | return 0; | 183 | return false; |
184 | /* base.name is a substring of fqname */ | 184 | /* base.name is a substring of fqname */ |
185 | policy->name = basename(policy->hname); | 185 | policy->name = basename(policy->hname); |
186 | INIT_LIST_HEAD(&policy->list); | 186 | INIT_LIST_HEAD(&policy->list); |
187 | INIT_LIST_HEAD(&policy->profiles); | 187 | INIT_LIST_HEAD(&policy->profiles); |
188 | 188 | ||
189 | return 1; | 189 | return true; |
190 | } | 190 | } |
191 | 191 | ||
192 | /** | 192 | /** |