Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Add a comment describing why we give carte blanche ...
details: https://anonhg.NetBSD.org/src/rev/9e3ab1278321
branches: trunk
changeset: 1024819:9e3ab1278321
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Nov 07 01:51:56 2021 +0000
description:
Add a comment describing why we give carte blanche to processes
marked as PK_32. NFC.
diffstat:
sys/kern/sys_sig.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 4a5d505c7734 -r 9e3ab1278321 sys/kern/sys_sig.c
--- a/sys/kern/sys_sig.c Sat Nov 06 23:29:03 2021 +0000
+++ b/sys/kern/sys_sig.c Sun Nov 07 01:51:56 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_sig.c,v 1.54 2021/11/01 05:07:17 thorpej Exp $ */
+/* $NetBSD: sys_sig.c,v 1.55 2021/11/07 01:51:56 thorpej Exp $ */
/*-
* Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_sig.c,v 1.54 2021/11/01 05:07:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_sig.c,v 1.55 2021/11/07 01:51:56 thorpej Exp $");
#include "opt_dtrace.h"
@@ -419,6 +419,10 @@
}
#ifdef __HAVE_STRUCT_SIGCONTEXT
else if (p->p_flag & PK_32) {
+ /*
+ * The 32-bit compat module will have
+ * pre-validated this for us.
+ */
v0v1valid = true;
} else if ((p->p_lflag & PL_SIGCOMPAT) == 0) {
kernconfig_lock();
Home |
Main Index |
Thread Index |
Old Index