From: deraadt Date: Tue, 19 Dec 2023 19:39:52 +0000 (+0000) Subject: static binary setting a table, or dynamic binary trying to do what X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0fba6a73ef5859965a8c99a6a0a64849430d2369;p=openbsd static binary setting a table, or dynamic binary trying to do what ld.so already did, will both be EPERM --- diff --git a/lib/libc/sys/pinsyscalls.2 b/lib/libc/sys/pinsyscalls.2 index 91b4b5b591a..7c45277a668 100644 --- a/lib/libc/sys/pinsyscalls.2 +++ b/lib/libc/sys/pinsyscalls.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pinsyscalls.2,v 1.3 2023/12/19 07:24:42 jmc Exp $ +.\" $OpenBSD: pinsyscalls.2,v 1.4 2023/12/19 19:39:52 deraadt Exp $ .\" .\" Copyright (c) 2023 Theo de Raadt .\" @@ -64,13 +64,11 @@ will fail if: .Bl -tag -width Er .It Bq Er E2BIG Implausible number of system calls provided. -.It Bq Er EINVAL -Process already has a system call pinning table loaded. .It Bq Er ENOMEM Insufficient memory to service the request. .It Bq Er EPERM A static binary tried to call -.Fn pinsyscalls . +.Fn pinsyscalls , or it was called a second time. .It Bq Er ERANGE At least one system call offset is beyond the bounds of .Ar len .