summaryrefslogtreecommitdiff
path: root/usr.sbin/sensorsd/sensorsd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-19 06:08:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-19 06:08:07 +0000
commitb7f78ccd00c2b31d0a9b3d298aefe8e3dd283f42 (patch)
treeaa8a9572b1e9cf2a235e005f6be7e33216464f50 /usr.sbin/sensorsd/sensorsd.c
parent3fe80f98fefd332c83c5527aeb27a8c42e75939a (diff)
pledge "stdio rpath proc exec"
Diffstat (limited to 'usr.sbin/sensorsd/sensorsd.c')
-rw-r--r--usr.sbin/sensorsd/sensorsd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/sensorsd/sensorsd.c b/usr.sbin/sensorsd/sensorsd.c
index 467b13eaadb..719df4bca24 100644
--- a/usr.sbin/sensorsd/sensorsd.c
+++ b/usr.sbin/sensorsd/sensorsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sensorsd.c,v 1.57 2015/11/19 06:06:30 deraadt Exp $ */
+/* $OpenBSD: sensorsd.c,v 1.58 2015/11/19 06:08:06 deraadt Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -112,6 +112,9 @@ main(int argc, char *argv[])
int ch, check_period = CHECK_PERIOD;
const char *errstr;
+ if (pledge("stdio rpath proc exec", NULL) == -1)
+ err(1, "pledge");
+
while ((ch = getopt(argc, argv, "c:d")) != -1) {
switch (ch) {
case 'c':