mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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>
This commit is contained in:
@@ -232,7 +232,7 @@ static void dump_common_audit_data(struct audit_buffer *ab,
|
||||
case LSM_AUDIT_DATA_PATH: {
|
||||
struct inode *inode;
|
||||
|
||||
audit_log_d_path(ab, "path=", &a->u.path);
|
||||
audit_log_d_path(ab, " path=", &a->u.path);
|
||||
|
||||
inode = a->u.path.dentry->d_inode;
|
||||
if (inode) {
|
||||
@@ -318,7 +318,7 @@ static void dump_common_audit_data(struct audit_buffer *ab,
|
||||
.dentry = u->dentry,
|
||||
.mnt = u->mnt
|
||||
};
|
||||
audit_log_d_path(ab, "path=", &path);
|
||||
audit_log_d_path(ab, " path=", &path);
|
||||
break;
|
||||
}
|
||||
if (!u->addr)
|
||||
|
Reference in New Issue
Block a user