constify ima_d_path()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Mar 2016 19:33:04 +0000 (15:33 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 28 Mar 2016 04:47:52 +0000 (00:47 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
security/integrity/ima/ima.h
security/integrity/ima/ima_api.c

index 5d0f61163d982d7e533cadfa8da6d5e1026a96bb..d3a939bf278115a2f4c94d7b12754b4da789d4c9 100644 (file)
@@ -170,7 +170,7 @@ int ima_alloc_init_template(struct ima_event_data *event_data,
 int ima_store_template(struct ima_template_entry *entry, int violation,
                       struct inode *inode, const unsigned char *filename);
 void ima_free_template_entry(struct ima_template_entry *entry);
-const char *ima_d_path(struct path *path, char **pathbuf);
+const char *ima_d_path(const struct path *path, char **pathbuf);
 
 /* IMA policy related functions */
 int ima_match_policy(struct inode *inode, enum ima_hooks func, int mask,
index 370e42dfc5c58bd78d88faa0116edb13d264fd72..5a2218fe877aea2fca2088dba8c9bd7ab4bf8316 100644 (file)
@@ -313,7 +313,7 @@ void ima_audit_measurement(struct integrity_iint_cache *iint,
        iint->flags |= IMA_AUDITED;
 }
 
-const char *ima_d_path(struct path *path, char **pathbuf)
+const char *ima_d_path(const struct path *path, char **pathbuf)
 {
        char *pathname = NULL;