From: Al Viro Date: Thu, 15 Mar 2012 01:48:20 +0000 (-0400) Subject: constify path argument of audit_log_d_path() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=66b3fad3f4c535c92b6a1184d535a97d6aa5d82a;p=mv-sheeva.git constify path argument of audit_log_d_path() Signed-off-by: Al Viro --- diff --git a/include/linux/audit.h b/include/linux/audit.h index 9ff7a2c48b5..ed3ef197249 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h @@ -684,7 +684,7 @@ extern void audit_log_untrustedstring(struct audit_buffer *ab, const char *string); extern void audit_log_d_path(struct audit_buffer *ab, const char *prefix, - struct path *path); + const struct path *path); extern void audit_log_key(struct audit_buffer *ab, char *key); extern void audit_log_lost(const char *message); diff --git a/kernel/audit.c b/kernel/audit.c index bb0eb5bb9a0..1c7f2c61416 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -1418,7 +1418,7 @@ void audit_log_untrustedstring(struct audit_buffer *ab, const char *string) /* This is a helper-function to print the escaped d_path */ void audit_log_d_path(struct audit_buffer *ab, const char *prefix, - struct path *path) + const struct path *path) { char *p, *pathname;