Clarify that --with-rundir and --with-vardir take sudo-specific directory,

e.g. /var/run/sudo and not just /var/run.  Bug #823
This commit is contained in:
Todd C. Miller
2018-02-19 11:27:30 -07:00
parent d5d170252a
commit e48cbfc10c
3 changed files with 25 additions and 21 deletions

35
INSTALL
View File

@@ -126,34 +126,35 @@ Directory and file names:
Install sudo example files in DIR [DATAROOTDIR/doc/sudo/examples] Install sudo example files in DIR [DATAROOTDIR/doc/sudo/examples]
--with-plugindir=DIR --with-plugindir=DIR
Set the directory that sudo looks in to find the policy and I/O The directory that sudo looks in to find the policy and I/O
logging plugins. Defaults to the LIBEXEC/sudo. logging plugins. Defaults to the LIBEXEC/sudo.
--with-rundir=DIR --with-rundir=DIR
Set the directory to be used for sudo-specific files that The directory to be used for sudo-specific files that do
do not survive a system reboot. This is typically where not survive a system reboot. This is typically where the
the time stamp directory is located. By default, configure time stamp directory is located. By default, configure
will use the first existing directory in the following list: will choose from the following list:
/run /var/run, /var/db, /var/lib, /var/adm, /usr/adm /run/sudo /var/run/sudo, /var/db/sudo, /var/lib/sudo,
/var/adm/sudo, /usr/adm/sudo
This directory should be cleared when the system reboots. This directory should be cleared when the system reboots.
On systems that lack /run or /var/run, the default rundir and On systems that lack /run or /var/run, the default rundir and
vardir may be the same. In this case, only the ts directory vardir may be the same. In this case, only the ts directory
inside the rundir needs to be cleared at boot time. inside the rundir needs to be cleared at boot time.
--with-vardir=DIR --with-vardir=DIR
Set the directory to be used for sudo-specific files that The directory to be used for sudo-specific files that survive
survive a system reboot. This is typically where the lecture a system reboot. This is typically where the lecture status
status directory is stored. By default, configure will use directory is stored. By default, configure will choose
the first existing directory in the following list: from the following list:
/var/db, /var/lib, /var/adm, /usr/adm /var/db/sudo, /var/lib/sudo, /var/adm/sudo, /usr/adm/sudo
This directory should not be cleared when the system boots. This directory should *not* be cleared when the system boots.
--with-tzdir=DIR --with-tzdir=DIR
Set the directory to the system's time zone data files. This The directory to the system's time zone data files. This
is only used when sanitizing the TZ environment variable to is only used when sanitizing the TZ environment variable
allow for fully-qualified paths in TZ. to allow for fully-qualified paths in TZ. By default,
By default, configure will look for an existing "zoneinfo" configure will look for an existing "zoneinfo" directory
directory in the following locations: in the following locations:
/usr/share /usr/share/lib /usr/lib /etc /usr/share /usr/share/lib /usr/lib /etc
If no zoneinfo directory is found, the TZ variable may not If no zoneinfo directory is found, the TZ variable may not
contain a fully-qualified path. contain a fully-qualified path.

7
configure vendored
View File

@@ -1719,8 +1719,11 @@ Optional Packages:
--with-badpass-message message the user sees when the password is wrong --with-badpass-message message the user sees when the password is wrong
--with-fqdn expect fully qualified hosts in sudoers --with-fqdn expect fully qualified hosts in sudoers
--with-timedir=DIR deprecated --with-timedir=DIR deprecated
--with-rundir=DIR path to the sudo time stamp parent dir --with-rundir=DIR directory for sudo-specific files that do not
--with-vardir=DIR path to the sudo var dir survive a system reboot, e.g. `/var/run/sudo'
--with-vardir=DIR directory for sudo-specific files that survive a
system reboot, e.g. `/var/db/sudo' or
`/var/lib/sudo'
--with-iologdir=DIR directory to store sudo I/O log files in --with-iologdir=DIR directory to store sudo I/O log files in
--with-tzdir=DIR path to the time zone data directory --with-tzdir=DIR path to the time zone data directory
--with-sendmail set path to sendmail --with-sendmail set path to sendmail

View File

@@ -845,7 +845,7 @@ AC_ARG_WITH(timedir, [AS_HELP_STRING([--with-timedir=DIR], [deprecated])],
;; ;;
esac]) esac])
AC_ARG_WITH(rundir, [AS_HELP_STRING([--with-rundir=DIR], [path to the sudo time stamp parent dir])], AC_ARG_WITH(rundir, [AS_HELP_STRING([--with-rundir=DIR], [directory for sudo-specific files that do not survive a system reboot, e.g. `/var/run/sudo'])],
[case $with_rundir in [case $with_rundir in
yes) AC_MSG_ERROR(["must give --with-rundir an argument."]) yes) AC_MSG_ERROR(["must give --with-rundir an argument."])
;; ;;
@@ -853,7 +853,7 @@ AC_ARG_WITH(rundir, [AS_HELP_STRING([--with-rundir=DIR], [path to the sudo time
;; ;;
esac]) esac])
AC_ARG_WITH(vardir, [AS_HELP_STRING([--with-vardir=DIR], [path to the sudo var dir])], AC_ARG_WITH(vardir, [AS_HELP_STRING([--with-vardir=DIR], [directory for sudo-specific files that survive a system reboot, e.g. `/var/db/sudo' or `/var/lib/sudo'])],
[case $with_vardir in [case $with_vardir in
yes) AC_MSG_ERROR(["must give --with-vardir an argument."]) yes) AC_MSG_ERROR(["must give --with-vardir an argument."])
;; ;;