diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2022-09-01 15:43:08 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2022-09-01 15:43:08 +0000 |
commit | 8a42d6651d73d81ca202a7725cf48f4357e8f4e3 (patch) | |
tree | b1fba3f105058aacb92e12fa8f4eeac34b9df6c8 | |
parent | 70ae1873615ab6a46b0008d8ed4c7ea153830fd9 (diff) |
fix unveil(2) in vmctl(8), unix socket needs :w:
ok mestre@ martijn@
-rw-r--r-- | usr.sbin/vmctl/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmctl/main.c b/usr.sbin/vmctl/main.c index 1182e58e39a..01b0f417441 100644 --- a/usr.sbin/vmctl/main.c +++ b/usr.sbin/vmctl/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.72 2022/07/30 14:17:42 kn Exp $ */ +/* $OpenBSD: main.c,v 1.73 2022/09/01 15:43:07 benno Exp $ */ /* * Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org> @@ -196,7 +196,7 @@ vmmaction(struct parse_result *res) unsigned int flags; if (ctl_sock == -1) { - if (unveil(SOCKET_NAME, "r") == -1) + if (unveil(SOCKET_NAME, "w") == -1) err(1, "unveil %s", SOCKET_NAME); if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0)) == -1) |