From a4ee6db0ab119663723099342fcaa2ddd145bccd Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 9 Dec 2017 06:50:32 +0000 Subject: [PATCH] More precision in pledge sysctl report --- sys/kern/kern_pledge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index b4906c3a2c1..9daf916f0c7 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.224 2017/11/17 23:08:10 abieber Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.225 2017/12/09 06:50:32 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -880,7 +880,7 @@ pledge_sysctl(struct proc *p, int miblen, int *mib, void *new) mib[0] == CTL_VM && mib[1] == VM_LOADAVG) return (0); - snprintf(buf, sizeof(buf), "%s(%d): sysctl %d:", + snprintf(buf, sizeof(buf), "%s(%d): pledge sysctl %d:", p->p_p->ps_comm, p->p_p->ps_pid, miblen); for (i = 0; i < miblen; i++) { char *p = buf + strlen(buf); -- 2.20.1