2009-03-30 05:17:45 -04:00
|
|
|
$OpenBSD: patch-src_iodined_c,v 1.2 2009/03/30 09:17:45 sthen Exp $
|
2008-02-06 16:42:28 -05:00
|
|
|
|
|
|
|
Drop privileges and chroot by default.
|
|
|
|
|
2009-03-30 05:17:45 -04:00
|
|
|
--- src/iodined.c.orig Sat Mar 21 14:07:49 2009
|
|
|
|
+++ src/iodined.c Mon Mar 30 10:25:08 2009
|
|
|
|
@@ -961,8 +961,8 @@ main(int argc, char **argv)
|
|
|
|
int skipipconfig;
|
|
|
|
char *netsize;
|
2008-02-06 16:42:28 -05:00
|
|
|
|
|
|
|
- username = NULL;
|
|
|
|
- newroot = NULL;
|
|
|
|
+ username = "_iodine";
|
|
|
|
+ newroot = "/var/empty";
|
|
|
|
device = NULL;
|
|
|
|
foreground = 0;
|
2009-03-30 05:17:45 -04:00
|
|
|
bind_enable = 0;
|