Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286073
b: refs/heads/master
c: c158a35
h: refs/heads/master
i:
  286071: 61932c9
v: v3
  • Loading branch information
Kees Cook authored and Al Viro committed Jan 17, 2012
1 parent 8819d22 commit 0c7d71e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41fdc3054e23e3229edea27053522fe052d02ec2
refs/heads/master: c158a35c8a681cf68d36f22f058f9f5466386c71
2 changes: 1 addition & 1 deletion trunk/kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ void audit_log_d_path(struct audit_buffer *ab, const char *prefix,
char *p, *pathname;

if (prefix)
audit_log_format(ab, " %s", prefix);
audit_log_format(ab, "%s", prefix);

/* We will allow 11 spaces for ' (deleted)' to be appended */
pathname = kmalloc(PATH_MAX+11, ab->gfp_mask);
Expand Down
6 changes: 3 additions & 3 deletions trunk/kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ static void audit_log_task_info(struct audit_buffer *ab, struct task_struct *tsk
while (vma) {
if ((vma->vm_flags & VM_EXECUTABLE) &&
vma->vm_file) {
audit_log_d_path(ab, "exe=",
audit_log_d_path(ab, " exe=",
&vma->vm_file->f_path);
break;
}
Expand Down Expand Up @@ -1540,7 +1540,7 @@ static void audit_log_name(struct audit_context *context, struct audit_names *n,
case 0:
/* name was specified as a relative path and the
* directory component is the cwd */
audit_log_d_path(ab, "name=", &context->pwd);
audit_log_d_path(ab, " name=", &context->pwd);
break;
default:
/* log the name's directory component */
Expand Down Expand Up @@ -1725,7 +1725,7 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts
if (context->pwd.dentry && context->pwd.mnt) {
ab = audit_log_start(context, GFP_KERNEL, AUDIT_CWD);
if (ab) {
audit_log_d_path(ab, "cwd=", &context->pwd);
audit_log_d_path(ab, " cwd=", &context->pwd);
audit_log_end(ab);
}
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/security/lsm_audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0c7d71e

Please sign in to comment.