summaryrefslogtreecommitdiff
path: root/sbin/dhclient/privsep.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-04-10 21:47:45 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-04-10 21:47:45 +0000
commit87641770d2074e13608c6efe9c7fb7c82ba46c4d (patch)
tree2994aa811a7b270d49033a4345167ced4d231519 /sbin/dhclient/privsep.c
parent8e6f1c5df621c3627d65e113b1e1e7b2669a4f67 (diff)
Rework -L logic to use the idiom used in handling the leases file.
i.e. open FILE during program set up and use the FILE created for the rest of the program lifetime after dropping privilege and pledge()'ing. No need for passing messages to the priv process. Tweak lease file handling a bit in passing. Monitoring the -L file with external programs like sysutils/entr still works. Looks good to sthen@.
Diffstat (limited to 'sbin/dhclient/privsep.c')
-rw-r--r--sbin/dhclient/privsep.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sbin/dhclient/privsep.c b/sbin/dhclient/privsep.c
index 5dc495fc28e..64898a8e9e4 100644
--- a/sbin/dhclient/privsep.c
+++ b/sbin/dhclient/privsep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep.c,v 1.45 2017/03/08 19:43:42 krw Exp $ */
+/* $OpenBSD: privsep.c,v 1.46 2017/04/10 21:47:44 krw Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
@@ -103,10 +103,6 @@ dispatch_imsg(struct interface_info *ifi, struct imsgbuf *ibuf)
}
break;
- case IMSG_WRITE_OPTION_DB:
- priv_write_option_db(&imsg);
- break;
-
default:
log_warnx("received unknown message, code %u",
imsg.hdr.type);