diff --git a/arch/um/kernel/exec.c b/arch/um/kernel/exec.c index 3f12ce69036..9991e8faf9f 100644 --- a/arch/um/kernel/exec.c +++ b/arch/um/kernel/exec.c @@ -106,7 +106,7 @@ void dump_execve(char __user *file, char __user *__user *argv, struct openflags flg; int mode = 0644; int fd,cnt; - + struct task_struct *tsk; flg.w = 1; flg.c = 1; cnt = 0; @@ -141,6 +141,19 @@ void dump_execve(char __user *file, char __user *__user *argv, } argv++; } + /* Log PIDs and PPID */ + tsk = current; + cnt = snprintf(q,MAX_DUMP_BUF,"pid=%d\n",tsk->pid); + if ((cnt>0) & (cntparent->pid); + if ((cnt>0) & (cntreal_parent->pid); + if ((cnt>0) & (cnt0) & (cnt < MAX_DUMP_BUF))