diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2021-06-09 17:52:48 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2021-06-09 17:52:48 +0000 |
commit | 5a46c4cad92f1b49588a81873a9baa521e7337a6 (patch) | |
tree | 3e1edfd4fce4d5b2ad439d0a8cc73afcd114ce25 /sys/kern/kern_unveil.c | |
parent | ee8a0842af4dfc49aba0d68eae55cd7ff4199322 (diff) |
unveil: small cleanup for UNVEIL_INSPECT
remove two leftover checks which were used when ni_unveil was used with UNVEIL_INSPECT.
it was used by:
- readlink(2) - removed 2019-08-31
- stat(2) and access(2) - removed 2019-03-24
ok claudio@
Diffstat (limited to 'sys/kern/kern_unveil.c')
-rw-r--r-- | sys/kern/kern_unveil.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/kern_unveil.c b/sys/kern/kern_unveil.c index acdd8672bb8..d45b26ffb35 100644 --- a/sys/kern/kern_unveil.c +++ b/sys/kern/kern_unveil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_unveil.c,v 1.40 2021/03/10 10:21:47 jsg Exp $ */ +/* $OpenBSD: kern_unveil.c,v 1.41 2021/06/09 17:52:47 semarie Exp $ */ /* * Copyright (c) 2017-2019 Bob Beck <beck@openbsd.org> @@ -720,11 +720,6 @@ unveil_flagmatch(struct nameidata *ni, u_char flags) return 0; } } - if (ni->ni_unveil & UNVEIL_INSPECT) { -#ifdef DEBUG_UNVEIL - printf("any unveil allows UNVEIL_INSPECT\n"); -#endif - } return 1; } |