aboutsummaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-17 20:47:12 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-17 20:47:12 +0000
commit31f90e641b16b8818ccb4fa6857ea236536575ea (patch)
tree77e51558af50bf4d5595b52a1411c663fc754a74 /init.c
parentCheck for multiplication overflow on ALLOC_ARRAY* functions. (diff)
downloadopenvpn-31f90e641b16b8818ccb4fa6857ea236536575ea.tar.xz
Added warning when using chroot without specifying user and group.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3069 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'init.c')
-rw-r--r--init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.c b/init.c
index 17c05bd..05d8cd7 100644
--- a/init.c
+++ b/init.c
@@ -1912,6 +1912,9 @@ do_option_warnings (struct context *c)
msg (M_WARN, "WARNING: you are using user/group/chroot without persist-key -- this may cause restarts to fail");
}
+ if (o->chroot_dir && !(o->username && o->groupname))
+ msg (M_WARN, "WARNING: you are using chroot without specifying user and group -- this may cause the chroot jail to be insecure");
+
#if P2MP
if (o->pull && o->ifconfig_local && c->first_time)
msg (M_WARN, "WARNING: using --pull/--client and --ifconfig together is probably not what you want");