mirror of
https://github.com/openbsd/src.git
synced 2024-12-22 16:42:56 -08:00
Unveil /tftpboot only if needed
Unless -t is used, this directory is not accessed in any way. OK millert
This commit is contained in:
parent
80411f110b
commit
3af1fc9b8d
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: rarpd.c,v 1.79 2021/11/15 15:14:24 millert Exp $ */
|
||||
/* $OpenBSD: rarpd.c,v 1.80 2022/10/04 07:01:38 kn Exp $ */
|
||||
/* $NetBSD: rarpd.c,v 1.25 1998/04/23 02:48:33 mrg Exp $ */
|
||||
|
||||
/*
|
||||
@ -339,6 +339,7 @@ rarp_loop(void)
|
||||
|
||||
arptab_init();
|
||||
|
||||
if (tflag)
|
||||
if (unveil(TFTP_DIR, "r") == -1)
|
||||
error("unveil %s", TFTP_DIR);
|
||||
if (unveil("/etc/ethers", "r") == -1)
|
||||
|
Loading…
Reference in New Issue
Block a user