[PATCH] take filling ->pid, etc. out of audit_get_context()

move that stuff downstream and into the only branch where it'll be
used.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 3f2792ff 5ac3a9c2

+12 -11
+12 -11
kernel/auditsc.c
··· 534 } 535 536 get_context: 537 - context->pid = tsk->pid; 538 - context->ppid = sys_getppid(); /* sic. tsk == current in all cases */ 539 - context->uid = tsk->uid; 540 - context->gid = tsk->gid; 541 - context->euid = tsk->euid; 542 - context->suid = tsk->suid; 543 - context->fsuid = tsk->fsuid; 544 - context->egid = tsk->egid; 545 - context->sgid = tsk->sgid; 546 - context->fsgid = tsk->fsgid; 547 - context->personality = tsk->personality; 548 tsk->audit_context = NULL; 549 return context; 550 } ··· 743 const char *tty; 744 745 /* tsk == current */ 746 747 ab = audit_log_start(context, GFP_KERNEL, AUDIT_SYSCALL); 748 if (!ab)
··· 534 } 535 536 get_context: 537 + 538 tsk->audit_context = NULL; 539 return context; 540 } ··· 753 const char *tty; 754 755 /* tsk == current */ 756 + context->pid = tsk->pid; 757 + context->ppid = sys_getppid(); /* sic. tsk == current in all cases */ 758 + context->uid = tsk->uid; 759 + context->gid = tsk->gid; 760 + context->euid = tsk->euid; 761 + context->suid = tsk->suid; 762 + context->fsuid = tsk->fsuid; 763 + context->egid = tsk->egid; 764 + context->sgid = tsk->sgid; 765 + context->fsgid = tsk->fsgid; 766 + context->personality = tsk->personality; 767 768 ab = audit_log_start(context, GFP_KERNEL, AUDIT_SYSCALL); 769 if (!ab)