summaryrefslogtreecommitdiffstats
path: root/sys/kern/exec_elf.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-10-05 02:31:52 +0000
committerguenther <guenther@openbsd.org>2016-10-05 02:31:52 +0000
commit2b712bfe63efc2f0c7a0015f5e2df6eab11f1585 (patch)
tree91f002b59e77bc0a0648df8c3f87e6501c189c39 /sys/kern/exec_elf.c
parentUse consistant idiom (intermediate variable 'i' rather than repeated (diff)
downloadwireguard-openbsd-2b712bfe63efc2f0c7a0015f5e2df6eab11f1585.tar.xz
wireguard-openbsd-2b712bfe63efc2f0c7a0015f5e2df6eab11f1585.zip
Display/test/use the process PID, not the thread's TID, in a few places.
ok mpi@ mikeb@
Diffstat (limited to 'sys/kern/exec_elf.c')
-rw-r--r--sys/kern/exec_elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c
index dfb45f6a01f..87c850ffeef 100644
--- a/sys/kern/exec_elf.c
+++ b/sys/kern/exec_elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.c,v 1.127 2016/09/12 00:35:54 schwarze Exp $ */
+/* $OpenBSD: exec_elf.c,v 1.128 2016/10/05 02:31:52 guenther Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -899,7 +899,7 @@ ELFNAME(os_pt_note)(struct proc *p, struct exec_package *epp, Elf_Ehdr *eh,
sizeof(pathbuf), NULL);
log(LOG_NOTICE,
"%s(%d): W^X binary outside wxallowed mountpoint\n",
- error ? "" : pathbuf, p->p_pid);
+ error ? "" : pathbuf, p->p_p->ps_pid);
error = EACCES;
goto out1;
}