diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-11 02:55:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-11 02:55:13 +0000 |
commit | 747a405ccbb11b398689e97feaaf685f701bf8ed (patch) | |
tree | 5a424b6f04e5a92d08ffcbaf4508800f9f89cd4f /usr.sbin | |
parent | fe9e8af8f3246e14a9eb585feb4d7f5aaa093855 (diff) |
claudio twice told me pledge "stdio rpath dns" is probably enough.
He'll test it next time he builds...
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/iscsictl/iscsictl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/iscsictl/iscsictl.c b/usr.sbin/iscsictl/iscsictl.c index cb981131fad..6c3460101e0 100644 --- a/usr.sbin/iscsictl/iscsictl.c +++ b/usr.sbin/iscsictl/iscsictl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iscsictl.c,v 1.9 2015/01/16 06:40:17 deraadt Exp $ */ +/* $OpenBSD: iscsictl.c,v 1.10 2015/11/11 02:55:12 deraadt Exp $ */ /* * Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org> @@ -104,6 +104,9 @@ main (int argc, char* argv[]) if (connect(control.fd, (struct sockaddr *)&sun, sizeof(sun)) == -1) err(1, "connect: %s", sockname); + if (pledge("stdio rpath dns", NULL) == -1) + err(1, "pledge"); + switch (res->action) { case NONE: case LOG_VERBOSE: |