Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327251
b: refs/heads/master
c: f95732e
h: refs/heads/master
i:
  327249: bdae6fc
  327247: a78b84f
v: v3
  • Loading branch information
Eric W. Biederman committed Sep 18, 2012
1 parent ee8afcb commit 46c35a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 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: 02276bda4a2bf094fcde89fb5db4d9e86347ebf4
refs/heads/master: f95732e2e0a649c148be0242b72e3c7473092687
20 changes: 1 addition & 19 deletions trunk/kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,24 +468,6 @@ static int kauditd_thread(void *dummy)
return 0;
}

static int audit_prepare_user_tty(pid_t pid, uid_t loginuid, u32 sessionid)
{
struct task_struct *tsk;
int err;

rcu_read_lock();
tsk = find_task_by_vpid(pid);
if (!tsk) {
rcu_read_unlock();
return -ESRCH;
}
get_task_struct(tsk);
rcu_read_unlock();
err = tty_audit_push_task(tsk, loginuid, sessionid);
put_task_struct(tsk);
return err;
}

int audit_send_list(void *_dest)
{
struct audit_netlink_list *dest = _dest;
Expand Down Expand Up @@ -748,7 +730,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
if (err == 1) {
err = 0;
if (msg_type == AUDIT_USER_TTY) {
err = audit_prepare_user_tty(pid, loginuid,
err = tty_audit_push_task(current, loginuid,
sessionid);
if (err)
break;
Expand Down

0 comments on commit 46c35a8

Please sign in to comment.