/*
* EDIT THIS FILE WITH CAUTION (ntpd-opts.c)
*
- * It has been AutoGen-ed Sunday September 23, 2007 at 01:59:26 AM EDT
+ * It has been AutoGen-ed Sunday September 23, 2007 at 03:12:15 AM EDT
* From the definitions ntpd-opts.def
* and the template file options
*
/*
* Jaildir option description:
*/
-#ifdef DROPROOT
+#ifdef HAVE_DROPROOT
tSCC zJaildirText[] =
"Jail directory";
tSCC zJaildir_NAME[] = "JAILDIR";
#define zJaildirText NULL
#define zJaildir_NAME NULL
#define zJaildir_Name NULL
-#endif /* DROPROOT */
+#endif /* HAVE_DROPROOT */
/*
* Interface option description:
#define PROPAGATIONDELAY_FLAGS (OPTST_DISABLED \
| OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
-/*
- * Updateinterval option description:
- */
-tSCC zUpdateintervalText[] =
- "interval in seconds between scans for new or dropped interfaces";
-tSCC zUpdateinterval_NAME[] = "UPDATEINTERVAL";
-tSCC zUpdateinterval_Name[] = "updateinterval";
-#define UPDATEINTERVAL_FLAGS (OPTST_DISABLED \
- | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
-
/*
* Statsdir option description:
*/
/*
* User option description:
*/
+#ifdef HAVE_DROPROOT
tSCC zUserText[] =
"Run as userid (or userid:groupid)";
tSCC zUser_NAME[] = "USER";
#define USER_FLAGS (OPTST_DISABLED \
| OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
+#else /* disable User */
+#define VALUE_OPT_USER NO_EQUIVALENT
+#define USER_FLAGS (OPTST_OMITTED | OPTST_NO_INIT)
+#define zUserText NULL
+#define zUser_NAME NULL
+#define zUser_Name NULL
+#endif /* HAVE_DROPROOT */
+
+/*
+ * Updateinterval option description:
+ */
+tSCC zUpdateintervalText[] =
+ "interval in seconds between scans for new or dropped interfaces";
+tSCC zUpdateinterval_NAME[] = "UPDATEINTERVAL";
+tSCC zUpdateinterval_Name[] = "updateinterval";
+#define UPDATEINTERVAL_FLAGS (OPTST_DISABLED \
+ | OPTST_SET_ARGTYPE(OPARG_TYPE_NUMERIC))
+
/*
* Var option description:
*/
/* desc, NAME, name */ zPropagationdelayText, zPropagationdelay_NAME, zPropagationdelay_Name,
/* disablement strs */ NULL, NULL },
- { /* entry idx, value */ 22, VALUE_OPT_UPDATEINTERVAL,
- /* equiv idx, value */ 22, VALUE_OPT_UPDATEINTERVAL,
- /* equivalenced to */ NO_EQUIVALENT,
- /* min, max, act ct */ 0, 1, 0,
- /* opt state flags */ UPDATEINTERVAL_FLAGS, 0,
- /* last opt argumnt */ { NULL },
- /* arg list/cookie */ NULL,
- /* must/cannot opts */ NULL, NULL,
- /* option proc */ optionNumericVal,
- /* desc, NAME, name */ zUpdateintervalText, zUpdateinterval_NAME, zUpdateinterval_Name,
- /* disablement strs */ NULL, NULL },
-
- { /* entry idx, value */ 23, VALUE_OPT_STATSDIR,
- /* equiv idx, value */ 23, VALUE_OPT_STATSDIR,
+ { /* entry idx, value */ 22, VALUE_OPT_STATSDIR,
+ /* equiv idx, value */ 22, VALUE_OPT_STATSDIR,
/* equivalenced to */ NO_EQUIVALENT,
/* min, max, act ct */ 0, 1, 0,
/* opt state flags */ STATSDIR_FLAGS, 0,
/* desc, NAME, name */ zStatsdirText, zStatsdir_NAME, zStatsdir_Name,
/* disablement strs */ NULL, NULL },
- { /* entry idx, value */ 24, VALUE_OPT_TRUSTEDKEY,
- /* equiv idx, value */ 24, VALUE_OPT_TRUSTEDKEY,
+ { /* entry idx, value */ 23, VALUE_OPT_TRUSTEDKEY,
+ /* equiv idx, value */ 23, VALUE_OPT_TRUSTEDKEY,
/* equivalenced to */ NO_EQUIVALENT,
/* min, max, act ct */ 0, NOLIMIT, 0,
/* opt state flags */ TRUSTEDKEY_FLAGS, 0,
/* desc, NAME, name */ zTrustedkeyText, zTrustedkey_NAME, zTrustedkey_Name,
/* disablement strs */ NULL, NULL },
- { /* entry idx, value */ 25, VALUE_OPT_USER,
- /* equiv idx, value */ 25, VALUE_OPT_USER,
+ { /* entry idx, value */ 24, VALUE_OPT_USER,
+ /* equiv idx, value */ 24, VALUE_OPT_USER,
/* equivalenced to */ NO_EQUIVALENT,
/* min, max, act ct */ 0, 1, 0,
/* opt state flags */ USER_FLAGS, 0,
/* desc, NAME, name */ zUserText, zUser_NAME, zUser_Name,
/* disablement strs */ NULL, NULL },
+ { /* entry idx, value */ 25, VALUE_OPT_UPDATEINTERVAL,
+ /* equiv idx, value */ 25, VALUE_OPT_UPDATEINTERVAL,
+ /* equivalenced to */ NO_EQUIVALENT,
+ /* min, max, act ct */ 0, 1, 0,
+ /* opt state flags */ UPDATEINTERVAL_FLAGS, 0,
+ /* last opt argumnt */ { NULL },
+ /* arg list/cookie */ NULL,
+ /* must/cannot opts */ NULL, NULL,
+ /* option proc */ optionNumericVal,
+ /* desc, NAME, name */ zUpdateintervalText, zUpdateinterval_NAME, zUpdateinterval_Name,
+ /* disablement strs */ NULL, NULL },
+
{ /* entry idx, value */ 26, VALUE_OPT_VAR,
/* equiv idx, value */ 26, VALUE_OPT_VAR,
/* equivalenced to */ NO_EQUIVALENT,
/*
* EDIT THIS FILE WITH CAUTION (ntpd-opts.h)
*
- * It has been AutoGen-ed Sunday September 23, 2007 at 01:59:25 AM EDT
+ * It has been AutoGen-ed Sunday September 23, 2007 at 03:12:14 AM EDT
* From the definitions ntpd-opts.def
* and the template file options
*
INDEX_OPT_PRIORITY = 19,
INDEX_OPT_QUIT = 20,
INDEX_OPT_PROPAGATIONDELAY = 21,
- INDEX_OPT_UPDATEINTERVAL = 22,
- INDEX_OPT_STATSDIR = 23,
- INDEX_OPT_TRUSTEDKEY = 24,
- INDEX_OPT_USER = 25,
+ INDEX_OPT_STATSDIR = 22,
+ INDEX_OPT_TRUSTEDKEY = 23,
+ INDEX_OPT_USER = 24,
+ INDEX_OPT_UPDATEINTERVAL = 25,
INDEX_OPT_VAR = 26,
INDEX_OPT_DVAR = 27,
INDEX_OPT_SLEW = 28,
# warning undefining PROPAGATIONDELAY due to option name conflict
# undef PROPAGATIONDELAY
# endif
-# ifdef UPDATEINTERVAL
-# warning undefining UPDATEINTERVAL due to option name conflict
-# undef UPDATEINTERVAL
-# endif
# ifdef STATSDIR
# warning undefining STATSDIR due to option name conflict
# undef STATSDIR
# warning undefining USER due to option name conflict
# undef USER
# endif
+# ifdef UPDATEINTERVAL
+# warning undefining UPDATEINTERVAL due to option name conflict
+# undef UPDATEINTERVAL
+# endif
# ifdef VAR
# warning undefining VAR due to option name conflict
# undef VAR
# undef PRIORITY
# undef QUIT
# undef PROPAGATIONDELAY
-# undef UPDATEINTERVAL
# undef STATSDIR
# undef TRUSTEDKEY
# undef USER
+# undef UPDATEINTERVAL
# undef VAR
# undef DVAR
# undef SLEW
#endif /* DEBUG */
#define VALUE_OPT_DRIFTFILE 'f'
#define VALUE_OPT_PANICGATE 'g'
-#ifdef DROPROOT
+#ifdef HAVE_DROPROOT
#define VALUE_OPT_JAILDIR 'i'
-#endif /* DROPROOT */
+#endif /* HAVE_DROPROOT */
#define VALUE_OPT_INTERFACE 'I'
#define VALUE_OPT_KEYFILE 'k'
#define VALUE_OPT_LOGFILE 'l'
#define OPT_VALUE_PRIORITY (DESC(PRIORITY).optArg.argInt)
#define VALUE_OPT_QUIT 'q'
#define VALUE_OPT_PROPAGATIONDELAY 'r'
-#define VALUE_OPT_UPDATEINTERVAL 'U'
-#define OPT_VALUE_UPDATEINTERVAL (DESC(UPDATEINTERVAL).optArg.argInt)
#define VALUE_OPT_STATSDIR 's'
#define VALUE_OPT_TRUSTEDKEY 't'
+#ifdef HAVE_DROPROOT
#define VALUE_OPT_USER 'u'
+#endif /* HAVE_DROPROOT */
+#define VALUE_OPT_UPDATEINTERVAL 'U'
+#define OPT_VALUE_UPDATEINTERVAL (DESC(UPDATEINTERVAL).optArg.argInt)
#define VALUE_OPT_VAR 26
#define VALUE_OPT_DVAR 27
#define VALUE_OPT_SLEW 'x'
#
# EDIT THIS FILE WITH CAUTION (ntpd-opts.texi)
#
-# It has been AutoGen-ed Sunday September 23, 2007 at 01:59:28 AM EDT
+# It has been AutoGen-ed Sunday September 23, 2007 at 03:12:17 AM EDT
# From the definitions ntpd-opts.def
# and the template file aginfo.tpl
@end ignore
This option has some usage constraints. It:
@itemize @bullet
@item
-must be compiled in by defining @code{DROPROOT} during the compilation.
+must be compiled in by defining @code{HAVE_DROPROOT} during the compilation.
@end itemize
Chroot the server to the directory
This is the ``broadcast/propagation delay'' option.
Specify the default propagation delay from the broadcast/multicast server to this client. This is necessary only if the delay cannot be computed automatically by the protocol.
-@node ntpd updateinterval
-@subsection updateinterval option (-U)
-@cindex ntpd-updateinterval
-
-This is the ``interval in seconds between scans for new or dropped interfaces'' option.
-Give the time in seconds between two scans for new or dropped interfaces.
-For systems with routing socket support the scans will be performed shortly after the interface change
-has been detected by the system.
-Use 0 to disable scanning. 60 seconds is the minimum time between scans.
-
@node ntpd statsdir
@subsection statsdir option (-s)
@cindex ntpd-statsdir
@cindex ntpd-user
This is the ``run as userid (or userid:groupid)'' option.
+
+This option has some usage constraints. It:
+@itemize @bullet
+@item
+must be compiled in by defining @code{HAVE_DROPROOT} during the compilation.
+@end itemize
+
Specify a user, and optionally a group, to switch to.
This option is only available if the OS supports to run the server without full root privileges.
Currently, this option is supported under NetBSD (configure with
--enable-linuxcaps
).
+@node ntpd updateinterval
+@subsection updateinterval option (-U)
+@cindex ntpd-updateinterval
+
+This is the ``interval in seconds between scans for new or dropped interfaces'' option.
+Give the time in seconds between two scans for new or dropped interfaces.
+For systems with routing socket support the scans will be performed shortly after the interface change
+has been detected by the system.
+Use 0 to disable scanning. 60 seconds is the minimum time between scans.
+
@node ntpd var
@subsection var option
@cindex ntpd-var