Allow specifying runing user and chroot() enviroment

Allow the admin to switch the user the kdc is running under and
specify the chroot() directory to run in.

Please note you need a very special setup to get this working.
This commit is contained in:
Love Hornquist Astrand
2009-07-16 22:15:26 -07:00
parent 2076c1c93e
commit 3634423f36
3 changed files with 51 additions and 0 deletions

View File

@@ -64,6 +64,10 @@ static struct getarg_strings addresses_str; /* addresses to listen on */
static char *v4_realm;
char *runas_string;
char *chroot_string;
static struct getargs args[] = {
{
"config-file", 'c', arg_string, &config_file,
@@ -118,6 +122,12 @@ static struct getargs args[] = {
"disable DES" },
{ "builtin-hdb", 0, arg_flag, &builtin_hdb_flag,
"list builtin hdb backends"},
{ "runas-user", 0, arg_string, &runas_string,
"run as this user when connected to network"
},
{ "chroot", 0, arg_string, &chroot_string,
"chroot directory to run in"
},
{ "help", 'h', arg_flag, &help_flag },
{ "version", 'v', arg_flag, &version_flag }
};