summaryrefslogtreecommitdiff
path: root/sys/kern/kern_unveil.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-06-19 16:55:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-06-19 16:55:52 +0000
commit53c29a9959fbba84d8db289e0ccc608c392ce778 (patch)
tree9a99b80c4fdca51352ceaacbaf20f43108713722 /sys/kern/kern_unveil.c
parent83f5b6af58cc8c8f4caf734449a80932a4ac5711 (diff)
the pledge STATLIE code is no longer needed, as discussed with beck.
it actually isn't reached...
Diffstat (limited to 'sys/kern/kern_unveil.c')
-rw-r--r--sys/kern/kern_unveil.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_unveil.c b/sys/kern/kern_unveil.c
index 700ff554996..63897074afd 100644
--- a/sys/kern/kern_unveil.c
+++ b/sys/kern/kern_unveil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_unveil.c,v 1.25 2019/03/26 13:41:40 beck Exp $ */
+/* $OpenBSD: kern_unveil.c,v 1.26 2019/06/19 16:55:51 deraadt Exp $ */
/*
* Copyright (c) 2017-2019 Bob Beck <beck@openbsd.org>
@@ -799,7 +799,6 @@ unveil_check_final(struct proc *p, struct nameidata *ni)
printf("unveil: %s(%d): BYPASSUNVEIL.\n",
p->p_p->ps_comm, p->p_p->ps_pid);
#endif
- CLR(ni->ni_pledge, PLEDGE_STATLIE);
return (0);
}
if (ni->ni_vp != NULL && ni->ni_vp->v_type == VDIR) {