summaryrefslogtreecommitdiff
path: root/security/apparmor/include/lib.h
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2017-01-16 11:42:30 +0300
committerJohn Johansen <john.johansen@canonical.com>2017-01-16 12:18:26 +0300
commitbbe4a7c8733c925b061dcce2d1af8926cefbe539 (patch)
treeb0ccd2d4668dfc3de53a88cfe16eb91eaf4419fb /security/apparmor/include/lib.h
parent6e474e3063eae9767f219d83cf91d8360f63be0c (diff)
downloadlinux-bbe4a7c8733c925b061dcce2d1af8926cefbe539.tar.xz
apparmor: constify policy name and hname
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/include/lib.h')
-rw-r--r--security/apparmor/include/lib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/apparmor/include/lib.h b/security/apparmor/include/lib.h
index b5c16d3a7a18..7e81cdab4af0 100644
--- a/security/apparmor/include/lib.h
+++ b/security/apparmor/include/lib.h
@@ -123,8 +123,8 @@ static inline bool path_mediated_fs(struct dentry *dentry)
* @profiles: head of the profiles list contained in the object
*/
struct aa_policy {
- char *name;
- char *hname;
+ const char *name;
+ const char *hname;
struct list_head list;
struct list_head profiles;
};