1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-29 16:47:15 +00:00

Remove outdated comment. BYPASSUNVEIL is used inside __pledge_open only now.

This commit is contained in:
dgl
2026-03-24 01:03:11 +00:00
parent b75055f7ac
commit d7e4396e01

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: kern_pledge.c,v 1.348 2026/03/16 03:45:20 deraadt Exp $ */
/* $OpenBSD: kern_pledge.c,v 1.349 2026/03/24 01:03:11 dgl Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -602,11 +602,6 @@ pledge_namei(struct proc *p, struct nameidata *ni, char *path)
if (ni->ni_pledge == 0)
panic("pledge_namei: ni_pledge");
/*
* We set the BYPASSUNVEIL flag to skip unveil checks
* as necessary
*/
/* Doing a permitted execve() */
if ((ni->ni_pledge & PLEDGE_EXEC) && (pledge & PLEDGE_EXEC))
return (0);