mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
ttyname() is used, therefore must unveil _PATH_DEVDB.
from Anton Borowka
This commit is contained in:
parent
37ce36ffa8
commit
542869bb83
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: su.c,v 1.72 2018/10/21 13:18:19 deraadt Exp $ */
|
||||
/* $OpenBSD: su.c,v 1.73 2019/01/28 01:38:06 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 The Regents of the University of California.
|
||||
@ -166,6 +166,8 @@ main(int argc, char **argv)
|
||||
err(1, "unveil");
|
||||
if (unveil(_PATH_SHELLS, "r") == -1)
|
||||
err(1, "unveil");
|
||||
if (unveil(_PATH_DEVDB, "r") == -1)
|
||||
err(1, "unveil");
|
||||
|
||||
for (;;) {
|
||||
/* get target user, default to root unless in -L mode */
|
||||
|
Loading…
Reference in New Issue
Block a user