From 11430c74f67ddae177319b6d22fa64f9cfbb1534 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 30 May 2017 15:04:45 +0000 Subject: [PATCH] getrtable() is now permitted in "stdio". It carries no risk factors. --- sys/kern/kern_pledge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index ef4c766b263..dae6a1bccb7 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.209 2017/05/21 13:00:53 visa Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.210 2017/05/30 15:04:45 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -129,6 +129,7 @@ const uint64_t pledge_syscalls[SYS_MAXSYSCALL] = { [SYS_getsid] = PLEDGE_STDIO, [SYS_getthrid] = PLEDGE_STDIO, [SYS_getrlimit] = PLEDGE_STDIO, + [SYS_getrtable] = PLEDGE_STDIO, [SYS_gettimeofday] = PLEDGE_STDIO, [SYS_getdtablecount] = PLEDGE_STDIO, [SYS_getrusage] = PLEDGE_STDIO, -- 2.20.1