summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-06-23 16:57:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-06-23 16:57:03 +0000
commit01717f12bea0c139f1a7a58d8872f4c38a0fb1f5 (patch)
tree4d5c4166fa1f0e2394f12adcd518fa140cfcebcf /lib
parent20acdc22fdea4f3a45f9cf7360045ffa395e27e3 (diff)
Export unveil state so that ps(8) can show it. Two new status flags,
you'll see one, or neither. 'u' - process installed unveils, but not yet locked with unveil(0,0) or pledge w/o "unveil" 'U' - process has installed unveils, and locked. ok rob
Diffstat (limited to 'lib')
-rw-r--r--lib/libkvm/kvm_proc2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_proc2.c b/lib/libkvm/kvm_proc2.c
index aec0a5118a8..8a2a00cd0ad 100644
--- a/lib/libkvm/kvm_proc2.c
+++ b/lib/libkvm/kvm_proc2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_proc2.c,v 1.28 2019/06/07 10:55:41 asou Exp $ */
+/* $OpenBSD: kvm_proc2.c,v 1.29 2019/06/23 16:57:02 deraadt Exp $ */
/* $NetBSD: kvm_proc.c,v 1.30 1999/03/24 05:50:50 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -80,6 +80,7 @@
#include <sys/resource.h>
#include <sys/resourcevar.h>
#include <sys/signalvar.h>
+#include <sys/pledge.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>