1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

ttyname() is used after unveil/pledge, so _PATH_DEVDB must also be

permitted.
This commit is contained in:
deraadt 2019-01-28 20:17:51 +00:00
parent d8f59f8e3f
commit e508151162

View File

@ -1,4 +1,4 @@
/* $OpenBSD: wall.c,v 1.33 2018/08/07 18:28:05 deraadt Exp $ */
/* $OpenBSD: wall.c,v 1.34 2019/01/28 20:17:51 deraadt Exp $ */
/* $NetBSD: wall.c,v 1.6 1994/11/17 07:17:58 jtc Exp $ */
/*
@ -119,6 +119,8 @@ main(int argc, char **argv)
err(1, "unveil");
if (unveil(_PATH_DEV, "w") == -1)
err(1, "unveil");
if (unveil(_PATH_DEVDB, "r") == -1)
err(1, "unveil");
if (pledge("stdio rpath wpath getpw proc", NULL) == -1)
err(1, "pledge");