diff options
Diffstat (limited to 'usr.sbin/switchd/switchd.c')
-rw-r--r-- | usr.sbin/switchd/switchd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/switchd/switchd.c b/usr.sbin/switchd/switchd.c index c42ee62fad8..d2521e0bd0b 100644 --- a/usr.sbin/switchd/switchd.c +++ b/usr.sbin/switchd/switchd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: switchd.c,v 1.16 2018/09/10 13:21:39 akoshibe Exp $ */ +/* $OpenBSD: switchd.c,v 1.17 2019/07/22 09:19:52 mestre Exp $ */ /* * Copyright (c) 2013-2016 Reyk Floeter <reyk@openbsd.org> @@ -191,6 +191,10 @@ main(int argc, char *argv[]) log_procinit("parent"); + if (unveil("/", "r") == -1) + fatal("unveil"); + if (unveil("/dev", "rw") == -1) + fatal("unveil"); /* * pledge in the parent process: * stdio - for malloc and basic I/O including events. |