constify path argument of audit_log_d_path()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 15 Mar 2012 01:48:20 +0000 (21:48 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 21 Mar 2012 01:29:40 +0000 (21:29 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/audit.h
kernel/audit.c

index 9ff7a2c48b508103576d175d88fed1c5b3593592..ed3ef1972496126590ec07e771b930d268f97585 100644 (file)
@@ -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);
index bb0eb5bb9a0a8761286dfc29cd1aa5b8587e2801..1c7f2c61416b6b379c07c3af8ec225163670ed1f 100644 (file)
@@ -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;