]> granicus.if.org Git - sudo/log
sudo
7 years agoAdd new fdexec sudoers setting to allow choose whether execve() or
Todd C. Miller [Mon, 23 Jan 2017 02:56:16 +0000 (18:56 -0800)]
Add new fdexec sudoers setting to allow choose whether execve() or
fexecve() is used.

7 years agoClose execfd in parent processes where it is not needed.
Todd C. Miller [Mon, 23 Jan 2017 02:56:13 +0000 (18:56 -0800)]
Close execfd in parent processes where it is not needed.

7 years agoAdd support for digest matching when the command is a glob-style
Todd C. Miller [Sat, 21 Jan 2017 23:43:46 +0000 (16:43 -0700)]
Add support for digest matching when the command is a glob-style
pattern or a directory.  For example:

millert ALL = sha224:TmUvLkp3a2txliSC2X6CiK42626qdKsH72m/PQ== /bin/
millert ALL = sha224:TmUvLkp3a2txliSC2X6CiK42626qdKsH72m/PQ== /bin/*

would only match /bin/ls (assuming the digest matches).

Previously, only explicit path matches checked the digest.

7 years agoAdd support for SASL_MECH in ldap.conf; Bug #764
Todd C. Miller [Tue, 17 Jan 2017 18:09:23 +0000 (11:09 -0700)]
Add support for SASL_MECH in ldap.conf; Bug #764

7 years agoFix documentation bug, the contents of env_file have never been
Todd C. Miller [Tue, 17 Jan 2017 17:10:47 +0000 (10:10 -0700)]
Fix documentation bug, the contents of env_file have never been
subject to env_keep or env_check.  However, variables are only added
if they have not already been preserved.

7 years agoSafer example for rule that can change non-root passwords. GNU
Todd C. Miller [Tue, 17 Jan 2017 15:55:40 +0000 (08:55 -0700)]
Safer example for rule that can change non-root passwords.  GNU
getopts allows options to follow arguments so we need to be able
to deny things like "passwd root -q".  From Paul "Joey" Clark.
Bug #772

7 years agoDon't overwrite the return value of ldap_sasl_interactive_bind_s()
Todd C. Miller [Mon, 16 Jan 2017 18:20:26 +0000 (11:20 -0700)]
Don't overwrite the return value of ldap_sasl_interactive_bind_s()
by the subsequent call to sudo_set_krb5_ccache_name().  From Paul
Zirnik of SUSE.

7 years agoIn sudo_unsetenv_nodebug(), decrement envp.env_len after removing
Todd C. Miller [Mon, 16 Jan 2017 18:12:56 +0000 (11:12 -0700)]
In sudo_unsetenv_nodebug(), decrement envp.env_len after removing
the variable.  From Paul Zirnik of SUSE.

7 years agoonly run vsyslog_test if it exists
Todd C. Miller [Mon, 16 Jan 2017 02:13:26 +0000 (19:13 -0700)]
only run vsyslog_test if it exists

7 years agoAdd regress for vsyslog replacement.
Todd C. Miller [Mon, 16 Jan 2017 02:07:59 +0000 (19:07 -0700)]
Add regress for vsyslog replacement.

7 years agoDefine HAVE_NANOSLEEP if we find nanosleep in librt
Todd C. Miller [Sat, 14 Jan 2017 04:29:02 +0000 (21:29 -0700)]
Define HAVE_NANOSLEEP if we find nanosleep in librt

7 years agosudo_nanosleep not nanosleep in util.exp.in
Todd C. Miller [Sat, 14 Jan 2017 04:02:31 +0000 (21:02 -0700)]
sudo_nanosleep not nanosleep in util.exp.in

7 years agoadd nanosleep to util.exp.in if needed
Todd C. Miller [Sat, 14 Jan 2017 03:40:26 +0000 (20:40 -0700)]
add nanosleep to util.exp.in if needed

7 years agosudo 1.8.19p2
Todd C. Miller [Fri, 13 Jan 2017 23:45:14 +0000 (16:45 -0700)]
sudo 1.8.19p2

7 years agoDouble the size of new_fmt[] and remove an extraneous break in the
Todd C. Miller [Fri, 13 Jan 2017 23:39:31 +0000 (16:39 -0700)]
Double the size of new_fmt[] and remove an extraneous break in the
%m handling that was leftover from an earlier edit.

7 years agoFix typo, want vsnprintf not snprintf.
Todd C. Miller [Fri, 13 Jan 2017 23:30:44 +0000 (16:30 -0700)]
Fix typo, want vsnprintf not snprintf.

7 years agomove va_start() in mysyslog()
Todd C. Miller [Fri, 13 Jan 2017 23:30:08 +0000 (16:30 -0700)]
move va_start() in mysyslog()

7 years agoOnly treat failure of expand_iolog_path() as fatal if ignore_iolog_errors
Todd C. Miller [Fri, 13 Jan 2017 22:45:59 +0000 (15:45 -0700)]
Only treat failure of expand_iolog_path() as fatal if ignore_iolog_errors
is not set.

7 years agoWhen waiting for the parent to grant us the tty, use nanosleep
Todd C. Miller [Thu, 12 Jan 2017 17:44:26 +0000 (10:44 -0700)]
When waiting for the parent to grant us the tty, use nanosleep
instead of spinning to avoid hogging the CPU.

7 years agoUse ROOT_UID instead of 0
Todd C. Miller [Thu, 12 Jan 2017 17:42:26 +0000 (10:42 -0700)]
Use ROOT_UID instead of 0

7 years agoregen
Todd C. Miller [Mon, 9 Jan 2017 17:45:44 +0000 (10:45 -0700)]
regen

8 years agoFix crash in visudo introduced in sudo 1.8.9 when an IP address or
Todd C. Miller [Sun, 8 Jan 2017 02:50:05 +0000 (19:50 -0700)]
Fix crash in visudo introduced in sudo 1.8.9 when an IP address or
network is used in a host-based Defaults entry.  Bug #766

8 years agoAvoid using the system strnlen/strndup on AIX < 6. Even if configure
Todd C. Miller [Thu, 5 Jan 2017 13:22:58 +0000 (06:22 -0700)]
Avoid using the system strnlen/strndup on AIX < 6.  Even if configure
correctly detects it is working on the build machine, the sudo
package may be run on a system with an old libc were it is broken.

8 years agosudo 1.8.19p1
Todd C. Miller [Tue, 20 Dec 2016 17:26:50 +0000 (10:26 -0700)]
sudo 1.8.19p1

8 years agoFix logic bug when matching syslog priority and facility.
Todd C. Miller [Tue, 20 Dec 2016 17:24:55 +0000 (10:24 -0700)]
Fix logic bug when matching syslog priority and facility.

8 years agoDell spun off Quest so simplify the history by just talking
Todd C. Miller [Tue, 20 Dec 2016 13:35:49 +0000 (06:35 -0700)]
Dell spun off Quest so simplify the history by just talking
about Quest and not Dell.

8 years agoFix copyright year
Todd C. Miller [Mon, 19 Dec 2016 19:48:15 +0000 (12:48 -0700)]
Fix copyright year

8 years agotypo
Todd C. Miller [Mon, 19 Dec 2016 18:34:03 +0000 (11:34 -0700)]
typo

8 years agoHAVE_DECL_GETGROUPLIST_2 is always defined if HAVE_GETGROUPLIST_2 is,
Todd C. Miller [Sun, 18 Dec 2016 13:50:51 +0000 (06:50 -0700)]
HAVE_DECL_GETGROUPLIST_2 is always defined if HAVE_GETGROUPLIST_2 is,
we need to check its value, not whether it is defined.

8 years agosync with translationproject.org
Todd C. Miller [Thu, 15 Dec 2016 21:26:11 +0000 (14:26 -0700)]
sync with translationproject.org

8 years agosync with translationproject.org
Todd C. Miller [Tue, 13 Dec 2016 17:39:48 +0000 (10:39 -0700)]
sync with translationproject.org

8 years agoUse getgrouplist_2() on macOS if available.
Todd C. Miller [Tue, 13 Dec 2016 17:39:32 +0000 (10:39 -0700)]
Use getgrouplist_2() on macOS if available.

8 years agoregen
Todd C. Miller [Sun, 4 Dec 2016 02:25:17 +0000 (19:25 -0700)]
regen

8 years agoIn set_interfaces() treat a parse error as fatal.
Todd C. Miller [Sat, 3 Dec 2016 23:39:43 +0000 (16:39 -0700)]
In set_interfaces() treat a parse error as fatal.

8 years agoFix a clang warning on macOS
Todd C. Miller [Fri, 2 Dec 2016 16:34:08 +0000 (09:34 -0700)]
Fix a clang warning on macOS

8 years agosync with translationproject.org
Todd C. Miller [Thu, 1 Dec 2016 18:42:50 +0000 (11:42 -0700)]
sync with translationproject.org

8 years agoupdate for 1.8.19b2
Todd C. Miller [Thu, 1 Dec 2016 18:42:32 +0000 (11:42 -0700)]
update for 1.8.19b2

8 years agoIgnore a boot time that is in the future, which can happen when the
Todd C. Miller [Thu, 1 Dec 2016 17:52:05 +0000 (10:52 -0700)]
Ignore a boot time that is in the future, which can happen when the
clock is corrected down after boot.  Otherwise, the timestamp file
will be unlinked each time sudo is run and a password is always
required.

8 years agoAllow syslog priority to be negated or set to "none" to disable
Todd C. Miller [Wed, 30 Nov 2016 23:26:10 +0000 (16:26 -0700)]
Allow syslog priority to be negated or set to "none" to disable
logging successes or failures.

8 years agoAllow stdin and ttyin to be displayed too. The only one that is
Todd C. Miller [Wed, 30 Nov 2016 20:38:01 +0000 (13:38 -0700)]
Allow stdin and ttyin to be displayed too.  The only one that is
really useful in sudoreplay is stdin when input is from a pipe.

8 years agoSolaris 10 wordexp() returns 127 on execve() failure like popen()
Todd C. Miller [Wed, 30 Nov 2016 18:05:42 +0000 (11:05 -0700)]
Solaris 10 wordexp() returns 127 on execve() failure like popen()
does.

8 years agoid_t is 64-bits on FreeBSD so use strtoll() there.
Todd C. Miller [Wed, 30 Nov 2016 14:32:59 +0000 (07:32 -0700)]
id_t is 64-bits on FreeBSD so use strtoll() there.
Fixes the strtoid regress.

8 years agofix typo
Todd C. Miller [Wed, 30 Nov 2016 02:46:59 +0000 (19:46 -0700)]
fix typo

8 years agoFix the "all" setting for verifypw and listpw; nopass would never
Todd C. Miller [Wed, 30 Nov 2016 02:46:25 +0000 (19:46 -0700)]
Fix the "all" setting for verifypw and listpw; nopass would never
be true even if all the user's entries had the NOPASSWD tag.
Regression introduce in sudo 1.8.17.  Bug #762

8 years agosync with translationproject.org
Todd C. Miller [Mon, 28 Nov 2016 17:47:09 +0000 (10:47 -0700)]
sync with translationproject.org

8 years agoJust use malloc_options "S" on OpenBSD instead of "AFGJPR".
Todd C. Miller [Fri, 25 Nov 2016 16:04:00 +0000 (09:04 -0700)]
Just use malloc_options "S" on OpenBSD instead of "AFGJPR".

8 years agoUpdate year in license
Todd C. Miller [Tue, 22 Nov 2016 18:30:00 +0000 (11:30 -0700)]
Update year in license

8 years agoregen
Todd C. Miller [Tue, 22 Nov 2016 00:47:07 +0000 (17:47 -0700)]
regen

8 years agoregen
Todd C. Miller [Tue, 22 Nov 2016 00:45:46 +0000 (17:45 -0700)]
regen

8 years agoAdd SUDO_DEBUG_INSTANCE_ERROR return value for sudo_debug_register()
Todd C. Miller [Mon, 21 Nov 2016 16:37:23 +0000 (06:37 -1000)]
Add SUDO_DEBUG_INSTANCE_ERROR return value for sudo_debug_register()
and check for it in places where we check the return value of
sudo_debug_register().

8 years agoupdate for 1.8.19
Todd C. Miller [Sun, 20 Nov 2016 19:29:01 +0000 (12:29 -0700)]
update for 1.8.19

8 years agoAdd support for getpwnam_shadow() on OpenBSD
Todd C. Miller [Fri, 18 Nov 2016 00:55:44 +0000 (17:55 -0700)]
Add support for getpwnam_shadow() on OpenBSD

8 years agoAdd umask to user_info passed in from the front end to the plugin.
Todd C. Miller [Thu, 17 Nov 2016 23:00:06 +0000 (16:00 -0700)]
Add umask to user_info passed in from the front end to the plugin.

8 years agoFix sign compare warning.
Todd C. Miller [Thu, 17 Nov 2016 17:27:26 +0000 (10:27 -0700)]
Fix sign compare warning.

8 years agoUse AX_APPEND_FLAG instead of SUDO_APPEND_CPPFLAGS and direct
Todd C. Miller [Thu, 17 Nov 2016 17:16:51 +0000 (10:16 -0700)]
Use AX_APPEND_FLAG instead of SUDO_APPEND_CPPFLAGS and direct
modification of LDFLAGS.

8 years agoRemove aixcrypt.exp, it was a remnant of the 90's crypto wars where
Todd C. Miller [Thu, 17 Nov 2016 15:11:59 +0000 (08:11 -0700)]
Remove aixcrypt.exp, it was a remnant of the 90's crypto wars where
crypt() was not exported.

8 years agoRemove obsolete solaris issue with snprintf
Todd C. Miller [Thu, 17 Nov 2016 15:11:01 +0000 (08:11 -0700)]
Remove obsolete solaris issue with snprintf

8 years agoSunOS 4.x is no longer supported
Todd C. Miller [Thu, 17 Nov 2016 15:09:06 +0000 (08:09 -0700)]
SunOS 4.x is no longer supported

8 years agoPlug memory leak when a particular Path is set more than once.
Todd C. Miller [Wed, 16 Nov 2016 20:57:50 +0000 (13:57 -0700)]
Plug memory leak when a particular Path is set more than once.

8 years agoAdd sudo_ldap_is_negated() and sudo_ldap_is_negated() functions
Todd C. Miller [Wed, 16 Nov 2016 20:46:38 +0000 (13:46 -0700)]
Add sudo_ldap_is_negated() and sudo_ldap_is_negated() functions
and use them to parse negated entries instead of doing it manually.

8 years agoFix printing of sudoedit_follow in "sudo -l"
Todd C. Miller [Wed, 16 Nov 2016 18:03:50 +0000 (11:03 -0700)]
Fix printing of sudoedit_follow in "sudo -l"

8 years agoFor "sudo -l" print sudoOption sudoedit_follow as FOLLOW.
Todd C. Miller [Wed, 16 Nov 2016 18:03:12 +0000 (11:03 -0700)]
For "sudo -l" print sudoOption sudoedit_follow as FOLLOW.

8 years agoAlways define _PATH_SUDO_NOEXEC, _PATH_SUDO_SESH, _PATH_SUDO_PLUGIN_DIR,
Todd C. Miller [Wed, 16 Nov 2016 17:13:26 +0000 (10:13 -0700)]
Always define _PATH_SUDO_NOEXEC, _PATH_SUDO_SESH, _PATH_SUDO_PLUGIN_DIR,
even if only defined to NULL.  This means the accessors can always be
present.

Use RTLD_PRELOAD_VAR instead of _PATH_SUDO_NOEXEC to tell when
noexec is available.

Add ENABLE_SUDO_PLUGIN_API and use it instead of _PATH_SUDO_PLUGIN_DIR
to tell when the plugin API is available.

Add sudo_conf_clear_paths() to clear the path values so the
regress tests are not affected by compile-time settings.

8 years agoUse readline() in sudo_ldap_read_secret()
Todd C. Miller [Wed, 16 Nov 2016 16:22:18 +0000 (09:22 -0700)]
Use readline() in sudo_ldap_read_secret()

8 years agoGet rid of struct sudo_conf_paths and just use #defined index values
Todd C. Miller [Tue, 15 Nov 2016 22:41:41 +0000 (15:41 -0700)]
Get rid of struct sudo_conf_paths and just use #defined index values
to access the path values.
Make all accessors available even when the feature is not enabled.

8 years agoAdd ASAN_CFLAGS and ASAN_LDFLAGS and use -Wc prefix in ASAN_LDFLAGS
Todd C. Miller [Tue, 15 Nov 2016 17:15:36 +0000 (10:15 -0700)]
Add ASAN_CFLAGS and ASAN_LDFLAGS and use -Wc prefix in ASAN_LDFLAGS
to prevent libtool from strippign them out.
Avoid using ASAN flags when building sudo_noexec.so.

8 years agoDisable noexec for HP-UX 10.x which probably doesn't support LD_PRELOAD
Todd C. Miller [Mon, 14 Nov 2016 23:42:16 +0000 (16:42 -0700)]
Disable noexec for HP-UX 10.x which probably doesn't support LD_PRELOAD

8 years agoRemove SunOS 4 support, it is not modern enough to run sudo.
Todd C. Miller [Mon, 14 Nov 2016 21:40:50 +0000 (14:40 -0700)]
Remove SunOS 4 support, it is not modern enough to run sudo.

8 years agoRemove HP-UX 9 support, it is not modern enough for sudo.
Todd C. Miller [Mon, 14 Nov 2016 21:38:01 +0000 (14:38 -0700)]
Remove HP-UX 9 support, it is not modern enough for sudo.

8 years agoRemove Ultrix support, modern sudo can't run on Ultrix anyway.
Todd C. Miller [Mon, 14 Nov 2016 21:33:43 +0000 (14:33 -0700)]
Remove Ultrix support, modern sudo can't run on Ultrix anyway.

8 years agoAdd regress for noexec functionality
Todd C. Miller [Mon, 14 Nov 2016 21:21:08 +0000 (14:21 -0700)]
Add regress for noexec functionality

8 years agoUnbreak sudo_noexec on macOS where shared libraries and dynamic
Todd C. Miller [Mon, 14 Nov 2016 18:04:29 +0000 (11:04 -0700)]
Unbreak sudo_noexec on macOS where shared libraries and dynamic
modules are different.  We still want to install sudo_noexec.so
without the "lib" prefix so some hackery is required.

8 years agoDon't enable noexec for AIX 5.0-5.2, we need 5.3 and above.
Todd C. Miller [Mon, 14 Nov 2016 18:00:43 +0000 (11:00 -0700)]
Don't enable noexec for AIX 5.0-5.2, we need 5.3 and above.

8 years agoNeed to link sudo_noexec.so with -ldl for dlsym() on some platforms.
Todd C. Miller [Sun, 13 Nov 2016 23:00:31 +0000 (16:00 -0700)]
Need to link sudo_noexec.so with -ldl for dlsym() on some platforms.
Otherwise, the wordexp(3) wrapper will fail due to an undefined
symbol.  Bug #761

8 years agoIn strict mode, go to the file/line with an undefined aliases
Todd C. Miller [Sun, 13 Nov 2016 13:41:09 +0000 (06:41 -0700)]
In strict mode, go to the file/line with an undefined aliases
or aliases cycle directly.

8 years agoStore the file/lineno for alias and userspec entries so we can
Todd C. Miller [Sun, 13 Nov 2016 02:22:32 +0000 (19:22 -0700)]
Store the file/lineno for alias and userspec entries so we can
provide that info if there is an error.

8 years agoAdd simple reference-counted string allocator and use it for passing
Todd C. Miller [Fri, 11 Nov 2016 23:18:27 +0000 (16:18 -0700)]
Add simple reference-counted string allocator and use it for passing
around references to the sudoers path.  This lets us avoid making
copies of the sudoers path for the errorfile as well as each Defaults
entry.

8 years agoCast len from size_t to uint64_t before bit shifting since we are
Todd C. Miller [Fri, 11 Nov 2016 17:59:42 +0000 (10:59 -0700)]
Cast len from size_t to uint64_t before bit shifting since we are
adding to count which is also uint64_t.  Quiets a PVS-Studio warning.

8 years agoAdd checks for sudoers_locale early Defaults
Todd C. Miller [Thu, 10 Nov 2016 21:36:11 +0000 (14:36 -0700)]
Add checks for sudoers_locale early Defaults

8 years agoGo back to parsing Defaults entries in update_defaults instead of
Todd C. Miller [Wed, 9 Nov 2016 23:00:12 +0000 (16:00 -0700)]
Go back to parsing Defaults entries in update_defaults instead of
as sudoers is read.  Otherwise, we cannot properly support early
defaults like sudoers_locale.

8 years agoAdd the argument vector allocated for -s and -i mode to the garbage
Todd C. Miller [Thu, 10 Nov 2016 17:11:18 +0000 (10:11 -0700)]
Add the argument vector allocated for -s and -i mode to the garbage
collector list.  Avoids an ASAN warning on exit when the -s or -i
flags are used.

8 years agoadd missing sudo_pw_delref/sudo_gr_delref to plug memory leak
Todd C. Miller [Wed, 9 Nov 2016 23:07:12 +0000 (16:07 -0700)]
add missing sudo_pw_delref/sudo_gr_delref to plug memory leak

8 years agoUse expr instead of POSIX sh numerical expression to avoid
Todd C. Miller [Wed, 9 Nov 2016 13:03:31 +0000 (06:03 -0700)]
Use expr instead of POSIX sh numerical expression to avoid
a syntax error on older shells.

8 years agoBump plugin minor version to 10 for sudo_mode, sudo_group and sudo_user.
Todd C. Miller [Wed, 9 Nov 2016 03:34:46 +0000 (20:34 -0700)]
Bump plugin minor version to 10 for sudo_mode, sudo_group and sudo_user.

8 years agoFix a bug in host matching where a negated sudoHost entry would
Todd C. Miller [Tue, 8 Nov 2016 21:35:23 +0000 (14:35 -0700)]
Fix a bug in host matching where a negated sudoHost entry would
prevent other sudoHosts following it from matching.

8 years agoZero out sd_un before calling parse_default() so we don't try
Todd C. Miller [Tue, 8 Nov 2016 19:58:28 +0000 (12:58 -0700)]
Zero out sd_un before calling parse_default() so we don't try
to free stack garbage in the ldap/sssd backends.

8 years agoUse "ret", not "rc" for the function return value.
Todd C. Miller [Mon, 7 Nov 2016 20:39:42 +0000 (13:39 -0700)]
Use "ret", not "rc" for the function return value.

8 years agoUse sys/stat.h defines instead of bare octal values.
Todd C. Miller [Mon, 7 Nov 2016 20:36:05 +0000 (13:36 -0700)]
Use sys/stat.h defines instead of bare octal values.

8 years agoPass iolog mode, group and user from policy plugin to I/O log plugin.
Todd C. Miller [Mon, 7 Nov 2016 17:19:04 +0000 (10:19 -0700)]
Pass iolog mode, group and user from policy plugin to I/O log plugin.

8 years agoInstead of parsing sudoers Defaults twice, parse once while reading
Todd C. Miller [Mon, 7 Nov 2016 01:59:49 +0000 (18:59 -0700)]
Instead of parsing sudoers Defaults twice, parse once while reading
sudoers and then just set the parsed value in update_defaults().

8 years agoUse "struct defaults *d" instead of "struct defaults *def" throughout
Todd C. Miller [Mon, 7 Nov 2016 01:55:18 +0000 (18:55 -0700)]
Use "struct defaults *d" instead of "struct defaults *def" throughout
for consistency and to avoid confusino with "struct def_values *def".
Use "str" not "var" for the string argument to convert and store in
sd_un for the store_* functions.

8 years agoIn display_bound_defaults() rename dtype arg -> deftype.
Todd C. Miller [Mon, 7 Nov 2016 01:41:31 +0000 (18:41 -0700)]
In display_bound_defaults() rename dtype arg -> deftype.

8 years agoUpdate error output to match quoting changes.
Todd C. Miller [Thu, 3 Nov 2016 17:16:09 +0000 (11:16 -0600)]
Update error output to match quoting changes.

8 years agoAvoid passing in a struct sudo_defs_types pointer to the store
Todd C. Miller [Thu, 3 Nov 2016 17:02:48 +0000 (11:02 -0600)]
Avoid passing in a struct sudo_defs_types pointer to the store
functions.  Pass in a pointer to the union to fill instead.

8 years agono longer need struct defaults forward referebce
Todd C. Miller [Thu, 3 Nov 2016 16:15:18 +0000 (10:15 -0600)]
no longer need struct defaults forward referebce

8 years agoUse "double quotes" in messages instead of a combination of the
Todd C. Miller [Wed, 2 Nov 2016 23:10:17 +0000 (17:10 -0600)]
Use "double quotes" in messages instead of a combination of the
accent (grave) mark and apostrophe.

8 years agoAdd file:linenumber prefix to all Defaults warnings so we can see
Todd C. Miller [Wed, 2 Nov 2016 23:07:32 +0000 (17:07 -0600)]
Add file:linenumber prefix to all Defaults warnings so we can see
them when running sudo too.  For LDAP/SSSD we print the sudoRole
instead of the file name and omit the line number.

8 years agoUse sudoedit in examples instead of "sudo vi"
Todd C. Miller [Wed, 2 Nov 2016 23:07:25 +0000 (17:07 -0600)]
Use sudoedit in examples instead of "sudo vi"

8 years agoOnly treat an unknown Defaults entry as a parse error in visudo,
Todd C. Miller [Tue, 1 Nov 2016 21:08:11 +0000 (15:08 -0600)]
Only treat an unknown Defaults entry as a parse error in visudo,
not in sudo itself.

8 years agoInstead of checking Defaults values after the fact, check them at
Todd C. Miller [Tue, 1 Nov 2016 20:22:32 +0000 (14:22 -0600)]
Instead of checking Defaults values after the fact, check them at
sudoers parse time.  This makes it possible to display the file and
line number with the problem and for visudo to go right to the
error.