diff options
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r-- | kernel/auditsc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 40722e26de98..298897559ca4 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -781,8 +781,8 @@ static void audit_log_task_info(struct audit_buffer *ab, struct task_struct *tsk | |||
781 | if ((vma->vm_flags & VM_EXECUTABLE) && | 781 | if ((vma->vm_flags & VM_EXECUTABLE) && |
782 | vma->vm_file) { | 782 | vma->vm_file) { |
783 | audit_log_d_path(ab, "exe=", | 783 | audit_log_d_path(ab, "exe=", |
784 | vma->vm_file->f_dentry, | 784 | vma->vm_file->f_path.dentry, |
785 | vma->vm_file->f_vfsmnt); | 785 | vma->vm_file->f_path.mnt); |
786 | break; | 786 | break; |
787 | } | 787 | } |
788 | vma = vma->vm_next; | 788 | vma = vma->vm_next; |
@@ -826,10 +826,12 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts | |||
826 | context->return_code); | 826 | context->return_code); |
827 | 827 | ||
828 | mutex_lock(&tty_mutex); | 828 | mutex_lock(&tty_mutex); |
829 | read_lock(&tasklist_lock); | ||
829 | if (tsk->signal && tsk->signal->tty && tsk->signal->tty->name) | 830 | if (tsk->signal && tsk->signal->tty && tsk->signal->tty->name) |
830 | tty = tsk->signal->tty->name; | 831 | tty = tsk->signal->tty->name; |
831 | else | 832 | else |
832 | tty = "(none)"; | 833 | tty = "(none)"; |
834 | read_unlock(&tasklist_lock); | ||
833 | audit_log_format(ab, | 835 | audit_log_format(ab, |
834 | " a0=%lx a1=%lx a2=%lx a3=%lx items=%d" | 836 | " a0=%lx a1=%lx a2=%lx a3=%lx items=%d" |
835 | " ppid=%d pid=%d auid=%u uid=%u gid=%u" | 837 | " ppid=%d pid=%d auid=%u uid=%u gid=%u" |