mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-06-11 09:50:26 -04:00
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
This commit is contained in:
parent
8e986316d9
commit
31f90e641b
1 changed files with 3 additions and 0 deletions
3
init.c
3
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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue