Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

constify path argument of audit_log_d_path()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 66b3fad3 9fcf03d0

+2 -2
+1 -1
include/linux/audit.h
··· 684 684 const char *string); 685 685 extern void audit_log_d_path(struct audit_buffer *ab, 686 686 const char *prefix, 687 - struct path *path); 687 + const struct path *path); 688 688 extern void audit_log_key(struct audit_buffer *ab, 689 689 char *key); 690 690 extern void audit_log_lost(const char *message);
+1 -1
kernel/audit.c
··· 1418 1418 1419 1419 /* This is a helper-function to print the escaped d_path */ 1420 1420 void audit_log_d_path(struct audit_buffer *ab, const char *prefix, 1421 - struct path *path) 1421 + const struct path *path) 1422 1422 { 1423 1423 char *p, *pathname; 1424 1424