Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120665
b: refs/heads/master
c: 66303bc
h: refs/heads/master
i:
  120663: e986026
v: v3
  • Loading branch information
David Howells authored and James Morris committed Nov 13, 2008
1 parent 6fe9f08 commit 3a84eeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: b0fafa816ece0080771355de6158b4dfa8531a95
refs/heads/master: 66303bce9b924e35e435d35409d3abc371755767
6 changes: 4 additions & 2 deletions trunk/drivers/char/tty_audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ static void tty_audit_buf_push(struct task_struct *tsk, uid_t loginuid,
ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_TTY);
if (ab) {
char name[sizeof(tsk->comm)];
uid_t uid = task_uid(tsk);

audit_log_format(ab, "tty pid=%u uid=%u auid=%u ses=%u "
"major=%d minor=%d comm=", tsk->pid, tsk->uid,
loginuid, sessionid, buf->major, buf->minor);
"major=%d minor=%d comm=",
tsk->pid, uid, loginuid, sessionid,
buf->major, buf->minor);
get_task_comm(name, tsk);
audit_log_untrustedstring(ab, name);
audit_log_format(ab, " data=");
Expand Down

0 comments on commit 3a84eeb

Please sign in to comment.