constify ima_d_path()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
3b73b68c05
commit
81cd8896a6
|
@ -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,
|
int ima_store_template(struct ima_template_entry *entry, int violation,
|
||||||
struct inode *inode, const unsigned char *filename);
|
struct inode *inode, const unsigned char *filename);
|
||||||
void ima_free_template_entry(struct ima_template_entry *entry);
|
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 */
|
/* IMA policy related functions */
|
||||||
int ima_match_policy(struct inode *inode, enum ima_hooks func, int mask,
|
int ima_match_policy(struct inode *inode, enum ima_hooks func, int mask,
|
||||||
|
|
|
@ -313,7 +313,7 @@ void ima_audit_measurement(struct integrity_iint_cache *iint,
|
||||||
iint->flags |= IMA_AUDITED;
|
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;
|
char *pathname = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue