aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/auditsc.c20
-rw-r--r--kernel/fork.c2
2 files changed, 0 insertions, 22 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 7aaeb38b262a..4d8920f5ab88 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -1707,26 +1707,6 @@ void __audit_syscall_entry(int arch, int major,
1707 context->ppid = 0; 1707 context->ppid = 0;
1708} 1708}
1709 1709
1710void audit_finish_fork(struct task_struct *child)
1711{
1712 struct audit_context *ctx = current->audit_context;
1713 struct audit_context *p = child->audit_context;
1714 if (!p || !ctx)
1715 return;
1716 if (!ctx->in_syscall || ctx->current_state != AUDIT_RECORD_CONTEXT)
1717 return;
1718 p->arch = ctx->arch;
1719 p->major = ctx->major;
1720 memcpy(p->argv, ctx->argv, sizeof(ctx->argv));
1721 p->ctime = ctx->ctime;
1722 p->dummy = ctx->dummy;
1723 p->in_syscall = ctx->in_syscall;
1724 p->filterkey = kstrdup(ctx->filterkey, GFP_KERNEL);
1725 p->ppid = current->pid;
1726 p->prio = ctx->prio;
1727 p->current_state = ctx->current_state;
1728}
1729
1730/** 1710/**
1731 * audit_syscall_exit - deallocate audit context after a system call 1711 * audit_syscall_exit - deallocate audit context after a system call
1732 * @pt_regs: syscall registers 1712 * @pt_regs: syscall registers
diff --git a/kernel/fork.c b/kernel/fork.c
index 443f5125f11e..c1e5c21f48c1 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1525,8 +1525,6 @@ long do_fork(unsigned long clone_flags,
1525 init_completion(&vfork); 1525 init_completion(&vfork);
1526 } 1526 }
1527 1527
1528 audit_finish_fork(p);
1529
1530 /* 1528 /*
1531 * We set PF_STARTING at creation in case tracing wants to 1529 * We set PF_STARTING at creation in case tracing wants to
1532 * use this to distinguish a fully live task from one that 1530 * use this to distinguish a fully live task from one that