diff options
author | John Johansen <john.johansen@canonical.com> | 2017-01-16 11:42:30 +0300 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2017-01-16 12:18:26 +0300 |
commit | bbe4a7c8733c925b061dcce2d1af8926cefbe539 (patch) | |
tree | b0ccd2d4668dfc3de53a88cfe16eb91eaf4419fb /security/apparmor/lib.c | |
parent | 6e474e3063eae9767f219d83cf91d8360f63be0c (diff) | |
download | linux-bbe4a7c8733c925b061dcce2d1af8926cefbe539.tar.xz |
apparmor: constify policy name and hname
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/lib.c')
-rw-r--r-- | security/apparmor/lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/lib.c b/security/apparmor/lib.c index 02203889c3c8..91d5766d1c28 100644 --- a/security/apparmor/lib.c +++ b/security/apparmor/lib.c @@ -178,7 +178,7 @@ bool aa_policy_init(struct aa_policy *policy, const char *prefix, policy->hname = kmalloc(strlen(prefix) + strlen(name) + 3, GFP_KERNEL); if (policy->hname) - sprintf(policy->hname, "%s//%s", prefix, name); + sprintf((char *)policy->hname, "%s//%s", prefix, name); } else policy->hname = kstrdup(name, GFP_KERNEL); if (!policy->hname) |