diff options
author | Todd C. Miller <Todd.Miller@courtesan.com> | 2014-01-30 15:50:40 -0700 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@courtesan.com> | 2014-01-30 15:50:40 -0700 |
commit | f69bfe814459387fd49b140b6f47de60c595b478 (patch) | |
tree | 29262531a2366d3513b00b48d088051e0d888aa7 /m4/sudo.m4 | |
parent | 569bb8c3c81788329c7946e77967d2626ffa9bb4 (diff) | |
download | sudo-f69bfe814459387fd49b140b6f47de60c595b478.tar.gz |
Switch to new time stamp file format. Each user now has a single
file which may contain multiple records when per-tty time stamps
are in use (the default). The time stamps use a monotonic timer
where available and are once again stored in /var/run/sudo. The
lecture status is now stored separately from the time stamps in a
different directory.
Diffstat (limited to 'm4/sudo.m4')
-rw-r--r-- | m4/sudo.m4 | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/m4/sudo.m4 b/m4/sudo.m4 index 234b4ec80..73678be02 100644 --- a/m4/sudo.m4 +++ b/m4/sudo.m4 @@ -1,6 +1,6 @@ dnl Local m4 macros for autoconf (used by sudo) dnl -dnl Copyright (c) 1994-1996, 1998-2005, 2007-2013 +dnl Copyright (c) 1994-1996, 1998-2005, 2007-2014 dnl Todd C. Miller <Todd.Miller@courtesan.com> dnl dnl XXX - should cache values in all cases!!! @@ -121,12 +121,12 @@ fi dnl dnl Where the timestamp files go. dnl -AC_DEFUN([SUDO_TIMEDIR], [AC_MSG_CHECKING(for timestamp file location) +AC_DEFUN([SUDO_TIMEDIR], [AC_MSG_CHECKING(for time stamp file location) timedir="$with_timedir" if test -z "$timedir"; then - for d in /var/db /var/lib /var/adm /usr/adm; do + for d in /var/run /var/db /var/lib /var/adm /usr/adm; do if test -d "$d"; then - timedir="$d/sudo" + timedir="$d/sudo/ts" break fi done @@ -136,6 +136,23 @@ SUDO_DEFINE_UNQUOTED(_PATH_SUDO_TIMEDIR, "$timedir") ])dnl dnl +dnl Where the lecture status files go. +dnl +AC_DEFUN([SUDO_LECTURE_DIR], [AC_MSG_CHECKING(for lecture status file location) +lecture_dir="$with_lecture_dir" +if test -z "$lecture_dir"; then + for d in /var/db /var/lib /var/adm /usr/adm; do + if test -d "$d"; then + lecture_dir="$d/sudo/lectured" + break + fi + done +fi +AC_MSG_RESULT([$lecture_dir]) +SUDO_DEFINE_UNQUOTED(_PATH_SUDO_LECTURE_DIR, "$lecture_dir") +])dnl + +dnl dnl Where the I/O log files go, use /var/log/sudo-io if dnl /var/log exists, else /{var,usr}/adm/sudo-io dnl |