-/* $OpenBSD: kern_exec.c,v 1.248 2023/05/30 08:30:01 jsg Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.249 2023/07/06 07:49:52 deraadt Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
if (otvp)
vrele(otvp);
- /*
- * XXX As a transition mechanism, we don't enforce branch
- * target control flow integrity on partitions mounted with
- * the wxallowed flag.
- */
- if (pr->ps_textvp->v_mount &&
- (pr->ps_textvp->v_mount->mnt_flag & MNT_WXALLOWED))
- pack.ep_flags |= EXEC_NOBTCFI;
- /* XXX XXX But enable it for chrome. */
- if (strcmp(p->p_p->ps_comm, "chrome") == 0)
- pack.ep_flags &= ~EXEC_NOBTCFI;
-
atomic_setbits_int(&pr->ps_flags, PS_EXEC);
if (pr->ps_flags & PS_PPWAIT) {
atomic_clearbits_int(&pr->ps_flags, PS_PPWAIT);