From 774877c40a549ed7fa31aa2116396e28cccf4c89 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 19 Dec 2023 19:39:53 +0000 Subject: static binary setting a table, or dynamic binary trying to do what ld.so already did, will both be EPERM --- lib/libc/sys/pinsyscalls.2 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 . -- cgit v1.2.3