From be6fe69078fc4cf16d03ca9dc2252e517c3fceac Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 21 Dec 2022 07:16:03 +0000 Subject: [PATCH] fix a mangled comment --- sys/kern/exec_elf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c index 2d34330eff3..9dc99d3efa4 100644 --- a/sys/kern/exec_elf.c +++ b/sys/kern/exec_elf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.c,v 1.177 2022/12/05 23:18:37 deraadt Exp $ */ +/* $OpenBSD: exec_elf.c,v 1.178 2022/12/21 07:16:03 deraadt Exp $ */ /* * Copyright (c) 1996 Per Fogelstrom @@ -621,9 +621,11 @@ exec_elf_makecmds(struct proc *p, struct exec_package *epp) } else addr = ELF_NO_ADDR; - /* Permit system calls in specific main-programs */ + /* + * Permit system calls in main-text static binaries. + * Also block the ld.so syscall-grant + */ if (interp == NULL) { - /* statics. Also block the ld.so syscall-grant */ syscall = VMCMD_SYSCALL; p->p_vmspace->vm_map.flags |= VM_MAP_SYSCALL_ONCE; } -- 2.20.1