summaryrefslogtreecommitdiff
path: root/usr.bin/lastcomm
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2024-01-19 14:25:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2024-01-19 14:25:04 +0000
commit18e5a027d3aa2739ac75a0e50cb908bce2e37fc4 (patch)
treeb39479a3c2def8cc31a2426ca01a3e0679c36938 /usr.bin/lastcomm
parentcf1c2f188c38c2490a6a961100c38dcfbfd6033a (diff)
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.
Diffstat (limited to 'usr.bin/lastcomm')
-rw-r--r--usr.bin/lastcomm/lastcomm.110
-rw-r--r--usr.bin/lastcomm/lastcomm.c3
2 files changed, 3 insertions, 10 deletions
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);