diff options
author | Kees Cook <keescook@chromium.org> | 2012-01-06 17:07:10 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-17 16:17:04 -0500 |
commit | c158a35c8a681cf68d36f22f058f9f5466386c71 (patch) | |
tree | 54a7fe4d21a30848539b2bf94c885f0a0b123717 /security | |
parent | 41fdc3054e23e3229edea27053522fe052d02ec2 (diff) |
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')
-rw-r--r-- | security/lsm_audit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/lsm_audit.c b/security/lsm_audit.c index fc41b7cccb53..293b8c45b1d1 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) |