From: deraadt Date: Fri, 19 Jan 2024 14:25:03 +0000 (+0000) Subject: pinsyscall(SYS_execve) will soon go away, so the sys/acct.h bit AEXECVE X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f4577f1a84049147698da67561e445e54b43e47f;p=openbsd pinsyscall(SYS_execve) will soon go away, so the sys/acct.h bit AEXECVE can also be remove. Delete the code using it from the one program that inspects it. --- diff --git a/usr.bin/lastcomm/lastcomm.1 b/usr.bin/lastcomm/lastcomm.1 index 45ac2087324..af942301f3b 100644 --- a/usr.bin/lastcomm/lastcomm.1 +++ b/usr.bin/lastcomm/lastcomm.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: lastcomm.1,v 1.26 2023/12/11 00:40:31 deraadt Exp $ +.\" $OpenBSD: lastcomm.1,v 1.27 2024/01/19 14:25:03 deraadt Exp $ .\" $NetBSD: lastcomm.1,v 1.5 1995/10/22 01:43:41 ghudson Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)lastcomm.1 8.1 (Berkeley) 6/6/93 .\" -.Dd $Mdocdate: December 11 2023 $ +.Dd $Mdocdate: January 19 2024 $ .Dt LASTCOMM 1 .Os .Sh NAME @@ -105,12 +105,6 @@ The flags are encoded as follows: The command terminated with the generation of a .Pa core file. -.It Li E -The command terminated because it tried to -.Xr execve 2 -in violation of -.Xr pinsyscall 2 -policy. .It Li F The command ran after a fork, but without a following diff --git a/usr.bin/lastcomm/lastcomm.c b/usr.bin/lastcomm/lastcomm.c index 865860503ba..9614da0190b 100644 --- a/usr.bin/lastcomm/lastcomm.c +++ b/usr.bin/lastcomm/lastcomm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lastcomm.c,v 1.34 2023/12/11 00:40:31 deraadt Exp $ */ +/* $OpenBSD: lastcomm.c,v 1.35 2024/01/19 14:25:03 deraadt Exp $ */ /* $NetBSD: lastcomm.c,v 1.9 1995/10/22 01:43:42 ghudson Exp $ */ /* @@ -177,7 +177,6 @@ flagbits(int f) BIT(APLEDGE, 'P'); BIT(ATRAP, 'T'); BIT(AUNVEIL, 'U'); - BIT(AEXECVE, 'E'); BIT(APINSYS, 'S'); *p = '\0'; return (flags);