浏览代码

constify path argument of audit_log_d_path()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 13 年之前
父节点
当前提交
66b3fad3f4
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      include/linux/audit.h
  2. 1 1
      kernel/audit.c

+ 1 - 1
include/linux/audit.h

@@ -684,7 +684,7 @@ extern void		    audit_log_untrustedstring(struct audit_buffer *ab,
 						      const char *string);
 						      const char *string);
 extern void		    audit_log_d_path(struct audit_buffer *ab,
 extern void		    audit_log_d_path(struct audit_buffer *ab,
 					     const char *prefix,
 					     const char *prefix,
-					     struct path *path);
+					     const struct path *path);
 extern void		    audit_log_key(struct audit_buffer *ab,
 extern void		    audit_log_key(struct audit_buffer *ab,
 					  char *key);
 					  char *key);
 extern void		    audit_log_lost(const char *message);
 extern void		    audit_log_lost(const char *message);

+ 1 - 1
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 */
 /* This is a helper-function to print the escaped d_path */
 void audit_log_d_path(struct audit_buffer *ab, const char *prefix,
 void audit_log_d_path(struct audit_buffer *ab, const char *prefix,
-		      struct path *path)
+		      const struct path *path)
 {
 {
 	char *p, *pathname;
 	char *p, *pathname;