aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKees Cook2012-01-06 16:07:10 -0600
committerAl Viro2012-01-17 15:17:04 -0600
commitc158a35c8a681cf68d36f22f058f9f5466386c71 (patch)
tree54a7fe4d21a30848539b2bf94c885f0a0b123717 /security/lsm_audit.c
parent41fdc3054e23e3229edea27053522fe052d02ec2 (diff)
downloadam43-linux-kernel-c158a35c8a681cf68d36f22f058f9f5466386c71.tar.gz
am43-linux-kernel-c158a35c8a681cf68d36f22f058f9f5466386c71.tar.xz
am43-linux-kernel-c158a35c8a681cf68d36f22f058f9f5466386c71.zip
audit: no leading space in audit_log_d_path prefix
audit_log_d_path() injects an additional space before the prefix, which serves no purpose and doesn't mix well with other audit_log*() functions that do not sneak extra characters into the log. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'security/lsm_audit.c')
-rw-r--r--security/lsm_audit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/lsm_audit.c b/security/lsm_audit.c
index fc41b7cccb5..293b8c45b1d 100644
--- a/security/lsm_audit.c
+++ b/security/lsm_audit.c
@@ -232,7 +232,7 @@ static void dump_common_audit_data(struct audit_buffer *ab,
232 case LSM_AUDIT_DATA_PATH: { 232 case LSM_AUDIT_DATA_PATH: {
233 struct inode *inode; 233 struct inode *inode;
234 234
235 audit_log_d_path(ab, "path=", &a->u.path); 235 audit_log_d_path(ab, " path=", &a->u.path);
236 236
237 inode = a->u.path.dentry->d_inode; 237 inode = a->u.path.dentry->d_inode;
238 if (inode) { 238 if (inode) {
@@ -318,7 +318,7 @@ static void dump_common_audit_data(struct audit_buffer *ab,
318 .dentry = u->dentry, 318 .dentry = u->dentry,
319 .mnt = u->mnt 319 .mnt = u->mnt
320 }; 320 };
321 audit_log_d_path(ab, "path=", &path); 321 audit_log_d_path(ab, " path=", &path);
322 break; 322 break;
323 } 323 }
324 if (!u->addr) 324 if (!u->addr)