+* [Bug 899] Only show -i/--jaildir option if we HAVE_DROPROOT.
* [Bug 916] 'cryptosw' is undefined if built without OpenSSL.
* [Bug 891] 'restrict' config file keyword does not work (partial fix).
* [Bug 890] the crypto command seems to be required now.
/*
* EDIT THIS FILE WITH CAUTION (ntpd-opts.c)
*
- * It has been AutoGen-ed Thursday September 20, 2007 at 07:35:22 AM EDT
+ * It has been AutoGen-ed Sunday September 23, 2007 at 01:59:26 AM EDT
* From the definitions ntpd-opts.def
* and the template file options
*
/*
* Jaildir option description:
*/
+#ifdef DROPROOT
tSCC zJaildirText[] =
"Jail directory";
tSCC zJaildir_NAME[] = "JAILDIR";
#define JAILDIR_FLAGS (OPTST_DISABLED \
| OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
+#else /* disable Jaildir */
+#define VALUE_OPT_JAILDIR NO_EQUIVALENT
+#define JAILDIR_FLAGS (OPTST_OMITTED | OPTST_NO_INIT)
+#define zJaildirText NULL
+#define zJaildir_NAME NULL
+#define zJaildir_Name NULL
+#endif /* DROPROOT */
+
/*
* Interface option description:
*/
/*
* EDIT THIS FILE WITH CAUTION (ntpd-opts.h)
*
- * It has been AutoGen-ed Thursday September 20, 2007 at 07:35:21 AM EDT
+ * It has been AutoGen-ed Sunday September 23, 2007 at 01:59:25 AM EDT
* From the definitions ntpd-opts.def
* and the template file options
*
#endif /* DEBUG */
#define VALUE_OPT_DRIFTFILE 'f'
#define VALUE_OPT_PANICGATE 'g'
+#ifdef DROPROOT
#define VALUE_OPT_JAILDIR 'i'
+#endif /* DROPROOT */
#define VALUE_OPT_INTERFACE 'I'
#define VALUE_OPT_KEYFILE 'k'
#define VALUE_OPT_LOGFILE 'l'
#
# EDIT THIS FILE WITH CAUTION (ntpd-opts.texi)
#
-# It has been AutoGen-ed Thursday September 20, 2007 at 07:35:25 AM EDT
+# It has been AutoGen-ed Sunday September 23, 2007 at 01:59:28 AM EDT
# From the definitions ntpd-opts.def
# and the template file aginfo.tpl
@end ignore
@cindex ntpd-jaildir
This is the ``jail directory'' option.
+
+This option has some usage constraints. It:
+@itemize @bullet
+@item
+must be compiled in by defining @code{DROPROOT} during the compilation.
+@end itemize
+
Chroot the server to the directory
jaildir
.
-.TH NTPD 1 2007-09-20 "( 4.2.5p79)" "Programmer's Manual"
+.TH NTPD 1 2007-09-23 "( 4.2.5p79)" "Programmer's Manual"
.\" EDIT THIS FILE WITH CAUTION (ntpd.1)
.\"
-.\" It has been AutoGen-ed Thursday September 20, 2007 at 07:35:23 AM EDT
+.\" It has been AutoGen-ed Sunday September 23, 2007 at 01:59:27 AM EDT
.\" From the definitions ntpd-opts.def
.\" and the template file agman1.tpl
.\"
#endif
flag = {
+ ifdef = DROPROOT;
name = jaildir;
value = i;
arg-type = string;