From 48549e6549558d72243908523c53bb0362a5e64f Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 26 Oct 2015 11:11:45 +0000 Subject: [PATCH] add setreuid/setregid to "id" --- sys/kern/kern_pledge.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index adf42cdb073..5632c9de725 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.76 2015/10/26 07:44:43 semarie Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.77 2015/10/26 11:11:45 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -169,9 +169,11 @@ const u_int pledge_syscalls[SYS_MAXSYSCALL] = { [SYS_setuid] = PLEDGE_ID, [SYS_seteuid] = PLEDGE_ID, + [SYS_setreuid] = PLEDGE_ID, [SYS_setresuid] = PLEDGE_ID, [SYS_setgid] = PLEDGE_ID, [SYS_setegid] = PLEDGE_ID, + [SYS_setregid] = PLEDGE_ID, [SYS_setresgid] = PLEDGE_ID, [SYS_setgroups] = PLEDGE_ID, [SYS_setlogin] = PLEDGE_ID, -- 2.20.1