Skip to content
Browse files

constify path argument of audit_log_d_path()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information...
1 parent 9fcf03d commit 66b3fad3f4c535c92b6a1184d535a97d6aa5d82a Al Viro committed Mar 14, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 include/linux/audit.h
  2. +1 −1 kernel/audit.c
View
2 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);
View
2 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;

0 comments on commit 66b3fad

Please sign in to comment.
Something went wrong with that request. Please try again.