2009-03-30 05:17:45 -04:00
|
|
|
$OpenBSD: patch-src_iodine_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/iodine.c.orig Sat Mar 21 14:07:49 2009
|
|
|
|
+++ src/iodine.c Mon Mar 30 10:25:08 2009
|
|
|
|
@@ -1009,9 +1009,9 @@ main(int argc, char **argv)
|
|
|
|
int autodetect_frag_size;
|
2008-02-06 16:42:28 -05:00
|
|
|
|
|
|
|
memset(password, 0, 33);
|
|
|
|
- username = NULL;
|
|
|
|
+ username = "_iodine";
|
|
|
|
foreground = 0;
|
|
|
|
- newroot = NULL;
|
|
|
|
+ newroot = "/var/empty";
|
|
|
|
device = NULL;
|
|
|
|
chunkid = 0;
|
|
|
|
|