diff --git a/config b/config index 3f51f0c..2021e97 100644 --- a/config +++ b/config @@ -1,2 +1 @@ jailkit_config_dir=/etc/jailkit -jk_init_ini=jk_init.ini diff --git a/config.info b/config.info index e026554..6763178 100644 --- a/config.info +++ b/config.info @@ -1,2 +1 @@ jailkit_config_dir=Path to Jailkit configuration directory,0 -jk_init_ini=Path to the jk_init.ini configuration file,0 diff --git a/delete_jail.cgi b/delete_jail.cgi index e86d90e..0f2bcc3 100644 --- a/delete_jail.cgi +++ b/delete_jail.cgi @@ -48,5 +48,5 @@ else { #print ui_submit($text{delete_confirm}, "confirm"); print ui_form_end([ [ "confirm", $text{'delete_confirm'} ] ]); print "\n"; - print "\n"; + ui_print_footer(""); } diff --git a/help/index.html b/help/index.html index e4acc70..164f447 100644 --- a/help/index.html +++ b/help/index.html @@ -2,3 +2,6 @@
Jailkit is a set of utilities to limit user accounts to specific files using chroot() and or specific commands. Setting up a chroot shell, a shell limited to some specific command, or a daemon inside a chroot jail is a lot easier and can be automated using these utilities.
++ This module provides a user interface for managing the Jailkit jail configuration file (jk_init.ini). With it, you can create, modify, and delete jail definitions. +
diff --git a/jailkit-lib.pl b/jailkit-lib.pl index 1f77cc8..ac6d35b 100644 --- a/jailkit-lib.pl +++ b/jailkit-lib.pl @@ -31,7 +31,8 @@ =head2 get_jk_init_ini() sub get_jk_init_ini { use Config::IniFiles; - my $jk_init_ini = new Config::IniFiles( -file=>'/etc/jailkit/jk_init.ini'); + my $config_file = "$config{'jailkit_config_dir'}/jk_init.ini"; + my $jk_init_ini = new Config::IniFiles( -file=>"$config{'jailkit_config_dir'}/jk_init.ini" ); return $jk_init_ini; }