Todd C. Miller [Fri, 16 Sep 2011 13:05:37 +0000 (09:05 -0400)]
Fix a crash in make_grlist_item() on 64-bit machines with strict
alignment.
Todd C. Miller [Fri, 16 Sep 2011 13:05:17 +0000 (09:05 -0400)]
Remove list_options() function that is no longer used now that "sudo
-L" is gone.
Todd C. Miller [Fri, 16 Sep 2011 13:04:58 +0000 (09:04 -0400)]
Error message if user tries --with-CC
Todd C. Miller [Fri, 16 Sep 2011 13:04:27 +0000 (09:04 -0400)]
Check for -libmldap too when looking for ldap libs, which is the
Tivoli Directory Server client library.
Todd C. Miller [Fri, 9 Sep 2011 13:57:39 +0000 (09:57 -0400)]
Honor NOPASSWD tag for denied commands too.
Todd C. Miller [Thu, 8 Sep 2011 13:36:24 +0000 (09:36 -0400)]
Remove --with-CC option; it doesn't work correctly now that we use
libtool. Users can get the same effect by setting the CC environment
variable when running configure.
Todd C. Miller [Wed, 31 Aug 2011 15:19:10 +0000 (11:19 -0400)]
Assume all modern systems support fstat(2).
Todd C. Miller [Tue, 30 Aug 2011 14:05:30 +0000 (10:05 -0400)]
Add configure test for missing errno declaration and only
declare it ourselves if it is missing.
Todd C. Miller [Tue, 30 Aug 2011 13:46:12 +0000 (09:46 -0400)]
Include errno.h before sudo.h to avoid conflicting with the system
definition of errno.
Todd C. Miller [Mon, 29 Aug 2011 18:53:47 +0000 (14:53 -0400)]
Only print individual check status when there is a failure.
Todd C. Miller [Mon, 29 Aug 2011 18:51:12 +0000 (14:51 -0400)]
Add calls to setprogname() for test programs.
Todd C. Miller [Mon, 29 Aug 2011 18:49:10 +0000 (14:49 -0400)]
Add -Wall and -Werror after all tests so they don't cause failures.
Todd C. Miller [Mon, 29 Aug 2011 18:48:09 +0000 (14:48 -0400)]
Actually run check_addr in the check target
Todd C. Miller [Mon, 29 Aug 2011 18:10:18 +0000 (14:10 -0400)]
Split out address matching into its own file and add regression
tests for it.
Todd C. Miller [Sat, 27 Aug 2011 16:09:30 +0000 (12:09 -0400)]
When matching an address with a netmask in sudoers, AND the mask
and addr before checking against the local addresses.
Todd C. Miller [Fri, 26 Aug 2011 20:01:39 +0000 (16:01 -0400)]
Fix netmask matching.
Todd C. Miller [Fri, 26 Aug 2011 18:03:49 +0000 (14:03 -0400)]
Don't assume all editors support the +linenumber command line argument,
use a whitelist of known good editors.
Todd C. Miller [Tue, 23 Aug 2011 20:42:18 +0000 (16:42 -0400)]
Silence compiler warnings on Solaris with gcc 3.4.3
Todd C. Miller [Tue, 23 Aug 2011 19:24:55 +0000 (15:24 -0400)]
Fix building on RHEL 3
Todd C. Miller [Tue, 23 Aug 2011 14:15:28 +0000 (10:15 -0400)]
Add --enable-werror configure option.
Todd C. Miller [Tue, 23 Aug 2011 14:14:52 +0000 (10:14 -0400)]
setgroups() proto lives in grp.h on RHEL4, perhaps others.
Todd C. Miller [Tue, 23 Aug 2011 13:50:40 +0000 (09:50 -0400)]
Use PAM by default on AIX 6 and higher.
Todd C. Miller [Mon, 22 Aug 2011 12:26:50 +0000 (08:26 -0400)]
Add new Esperanto translation from translationproject.org
Todd C. Miller [Fri, 19 Aug 2011 13:32:25 +0000 (09:32 -0400)]
Quiet an innocuous valgrind warning.
Todd C. Miller [Thu, 18 Aug 2011 17:41:40 +0000 (13:41 -0400)]
Fix expansion of strftime() escapes in log_dir and add a regress test
that exhibited the problem.
Todd C. Miller [Thu, 18 Aug 2011 16:09:34 +0000 (12:09 -0400)]
Fix "make check" return value.
Todd C. Miller [Wed, 17 Aug 2011 15:40:14 +0000 (11:40 -0400)]
Regen pot files
Todd C. Miller [Wed, 17 Aug 2011 15:38:53 +0000 (11:38 -0400)]
Fix logic inversion in pot file up to date check.
Todd C. Miller [Mon, 15 Aug 2011 17:41:58 +0000 (13:41 -0400)]
Add caching for gettext() checks.
Todd C. Miller [Mon, 15 Aug 2011 14:21:13 +0000 (10:21 -0400)]
Better handling of libintl header and library mismatch.
Todd C. Miller [Sat, 13 Aug 2011 22:34:37 +0000 (18:34 -0400)]
Also check sudoers gid if sudoers is group writable.
Todd C. Miller [Fri, 12 Aug 2011 17:00:55 +0000 (13:00 -0400)]
If dlopen is present but libtool doesn't find it, error out since it
probably means that libtool doesn't support the system.
Todd C. Miller [Fri, 12 Aug 2011 15:04:25 +0000 (11:04 -0400)]
configure args on the command line should override builtin defaults.
Disable NLS for non-Linux/Solaris unless explicitly enabled.
Todd C. Miller [Fri, 12 Aug 2011 15:02:53 +0000 (11:02 -0400)]
Fix loop that calls authenticate().
If there was an error message from authenticate(), display it.
Todd C. Miller [Thu, 11 Aug 2011 18:32:23 +0000 (14:32 -0400)]
Update to autoconf 2.68 and libtool 2.4
Todd C. Miller [Thu, 11 Aug 2011 18:25:01 +0000 (14:25 -0400)]
Update to autoconf 2.68 and libtool 2.4
Todd C. Miller [Thu, 11 Aug 2011 17:25:08 +0000 (13:25 -0400)]
Fix typo; OPT should be OTP
Todd C. Miller [Thu, 11 Aug 2011 17:14:44 +0000 (13:14 -0400)]
Rename libsudoers convenience library to libparsesudoers to avoid
libtool confusion.
Todd C. Miller [Wed, 10 Aug 2011 13:50:52 +0000 (09:50 -0400)]
Add Danish sudoers translation from translationproject.org
Todd C. Miller [Wed, 10 Aug 2011 13:02:37 +0000 (09:02 -0400)]
Add dedicated callback function for runas_default sudoers setting
that only sets runas_pw if no runas user or group was specified by
the user.
Todd C. Miller [Tue, 9 Aug 2011 18:57:57 +0000 (14:57 -0400)]
Update Finish, Polish, Russian and Ukrainian translations from
translationproject.org.
Todd C. Miller [Tue, 9 Aug 2011 18:54:42 +0000 (14:54 -0400)]
Go back to using a callback for runas_default to keep runas_pw in
sync. This is needed to make per-entry runas_default settings work
with LDAP-based sudoers. Instead of declaring it a callback in
def_data.in, sudo and testsudoers poke sudo_defs_table[] which is
a bit naughty, but avoids requiring stub functions in visudo and
the tests.
Todd C. Miller [Fri, 5 Aug 2011 16:33:40 +0000 (12:33 -0400)]
Add check for out of date message catalogs when doing "make dist".
Todd C. Miller [Tue, 2 Aug 2011 20:14:11 +0000 (16:14 -0400)]
regen
Todd C. Miller [Tue, 2 Aug 2011 20:13:18 +0000 (16:13 -0400)]
Make sure compiler supports static-libgcc before using it.
Todd C. Miller [Mon, 1 Aug 2011 23:02:16 +0000 (19:02 -0400)]
Link libsudo_noexec.la with LDLDFLAGS for -static-libgcc
Todd C. Miller [Sat, 30 Jul 2011 13:35:56 +0000 (09:35 -0400)]
Add new Russian sudo translation from translationproject.org
and rebuild the other translation files.
Todd C. Miller [Fri, 29 Jul 2011 20:40:29 +0000 (16:40 -0400)]
Update Finish and Polish translations from translationproject.org
Todd C. Miller [Fri, 29 Jul 2011 14:10:40 +0000 (10:10 -0400)]
Go back to escaping the command args for "sudo -i" and "sudo -s"
before calling the plugin. Otherwise, spaces in the command args
are not treated properly. The sudoers plugin will unescape non-spaces
to make matching easier.
Todd C. Miller [Thu, 28 Jul 2011 14:59:37 +0000 (10:59 -0400)]
Fix some potential problems found by the clang static analyzer,
none serious.
Todd C. Miller [Thu, 28 Jul 2011 13:08:50 +0000 (09:08 -0400)]
Updated Ukranian and Chinese (simplified) po files from
translationproject.org
Todd C. Miller [Wed, 27 Jul 2011 18:47:31 +0000 (14:47 -0400)]
Updated Polish translation from translationproject.org
Todd C. Miller [Wed, 27 Jul 2011 18:23:45 +0000 (14:23 -0400)]
Rebuild pot files
Todd C. Miller [Wed, 27 Jul 2011 16:11:33 +0000 (12:11 -0400)]
Don't try to audit failure if the runas user does not exist. We don't
have the user's command at this point so there is nothing to audit.
Add a NULL check in audit_success() and audit_failure() just to be
on the safe side.
Todd C. Miller [Wed, 27 Jul 2011 16:00:24 +0000 (12:00 -0400)]
Add -g to CFLAG for PIE builds.
Todd C. Miller [Mon, 25 Jul 2011 13:17:18 +0000 (09:17 -0400)]
Remove fallback to per-group lookup when matching groups in sudoers.
The sudo front-end will now use getgrouplist() to get the user's
list of groups if getgroups() fails or returns zero groups so we
always have a list of the user's groups. For systems with
mbr_check_membership() which support more that NGROUPS_MAX groups
(Mac OS X), skip the call to getgroups() and use getgrouplist() so
we get all the groups.
Todd C. Miller [Fri, 22 Jul 2011 19:33:33 +0000 (15:33 -0400)]
Fix setgroups() fallback code on EINVAL.
Todd C. Miller [Fri, 22 Jul 2011 19:13:35 +0000 (15:13 -0400)]
Fix two PERM_INITIAL cases that were still using user_gids.
Todd C. Miller [Fri, 22 Jul 2011 16:56:33 +0000 (12:56 -0400)]
Add Polish sudo message catalog
Todd C. Miller [Fri, 22 Jul 2011 13:29:49 +0000 (09:29 -0400)]
user_group is no longer used, remove it
Todd C. Miller [Wed, 20 Jul 2011 20:55:57 +0000 (16:55 -0400)]
Add Polish translation from translationproject.org
Todd C. Miller [Wed, 20 Jul 2011 20:54:12 +0000 (16:54 -0400)]
Add a wrapper for setgroups() that trims off extra groups and retries
if setgroups() fails. Also add some missing addrefs for PERM_USER
and PERM_FULL_USER.
Todd C. Miller [Wed, 20 Jul 2011 15:58:45 +0000 (11:58 -0400)]
Instead of keeping separate groups and gids arrays, create struct
group_info and use it to store both, along with a count for each.
Cache group info on a per-user basis using getgrouplist() to get
the groups. We no longer need special to special case the user or
list user for user_in_group() and thus no longer need to reset the
groups list when listing another user.
Todd C. Miller [Wed, 20 Jul 2011 14:15:59 +0000 (10:15 -0400)]
Don't rely on NULL since we don't include a header for it.
Todd C. Miller [Tue, 19 Jul 2011 16:31:53 +0000 (12:31 -0400)]
Fix typo
Todd C. Miller [Mon, 18 Jul 2011 20:23:38 +0000 (16:23 -0400)]
Do not shadow global sudo_mode with a local variable in set_cmnd()
Todd C. Miller [Sun, 17 Jul 2011 14:37:15 +0000 (10:37 -0400)]
bash 2.x doesd not support the -l flag and exits with an error if
it is specified so use --login instead. This causes an error with
bash 1.x (which uses -login instead) but this version is hopefully
less used than 2.x.
Todd C. Miller [Sun, 17 Jul 2011 14:12:10 +0000 (10:12 -0400)]
Add Polish translation from translationproject.org
Todd C. Miller [Wed, 13 Jul 2011 20:50:25 +0000 (16:50 -0400)]
Make error strings translatable.
Todd C. Miller [Wed, 13 Jul 2011 19:51:26 +0000 (15:51 -0400)]
Only run configure with --with-pam-login for RHEL 5 and above.
Todd C. Miller [Wed, 13 Jul 2011 15:41:26 +0000 (11:41 -0400)]
Fix typo in summary
Todd C. Miller [Mon, 11 Jul 2011 19:57:13 +0000 (15:57 -0400)]
Add missing logwrap.c
Todd C. Miller [Mon, 11 Jul 2011 19:22:25 +0000 (15:22 -0400)]
Split out log file word wrap code into its own file and add unit
tests. Fixes an off-by one in the word wrap when the log line
length matches loglinelen.
Todd C. Miller [Tue, 5 Jul 2011 16:42:55 +0000 (12:42 -0400)]
For SuSE, only use /usr/lib64 as libexec if generating 64-bit
binaries.
Todd C. Miller [Tue, 5 Jul 2011 16:20:10 +0000 (12:20 -0400)]
Fix build error when --without-noexec configure option is used.
Todd C. Miller [Tue, 5 Jul 2011 15:42:39 +0000 (11:42 -0400)]
Disable noexec for AIX < 5. LDR_PRELOAD is only available in AIX
5.3 and above.
Todd C. Miller [Fri, 1 Jul 2011 18:13:47 +0000 (14:13 -0400)]
Resolve the list of gids passed in from the sudo frontend (the
result of getgroups()) to names and store both the group names and
ids in the sudo_user struct. When matching groups in the sudoers
file, match based on the names in the groups list first and
only do a gid-based match when we absolutely have to. By matching
on the group name (as it is listed in sudoers) instead of id
(which we would have to resolve) we save a lot of group lookups
for sudoers files with a lot of groups in them.
Todd C. Miller [Sun, 26 Jun 2011 22:02:09 +0000 (18:02 -0400)]
Workaround for "sudo -i command" and newer versions of bash which
don't go into login mode when -c is specified unless -l is too.
Todd C. Miller [Thu, 23 Jun 2011 18:17:38 +0000 (14:17 -0400)]
Rewrite logfile word wrapping code to be more straight-forward
and actually wrap at the correct place.
Todd C. Miller [Wed, 22 Jun 2011 14:06:35 +0000 (10:06 -0400)]
Set use_pty=true in command details when use_pty is set in sudoers.
From Ludwig Nussel
Todd C. Miller [Mon, 20 Jun 2011 12:30:10 +0000 (08:30 -0400)]
Sync Chinese (simplified) PO files from translationproject.org
Todd C. Miller [Sat, 18 Jun 2011 17:21:48 +0000 (13:21 -0400)]
Add Danish translation from translationproject.org and add missing
Basque mo files.
Todd C. Miller [Sat, 18 Jun 2011 17:11:27 +0000 (13:11 -0400)]
No longer need to specify LINGUAS in configure, "make install-nls"
now just installs all the .mo files it finds.
Todd C. Miller [Fri, 17 Jun 2011 13:39:27 +0000 (09:39 -0400)]
Build CONTRIBUTORS from newly-added contributors.pod
Todd C. Miller [Fri, 17 Jun 2011 13:07:49 +0000 (09:07 -0400)]
Rework the wording in the leading paragraph
Todd C. Miller [Tue, 14 Jun 2011 20:53:26 +0000 (16:53 -0400)]
Add a CONTRIBUTORS file with the names of folks who have contributed
code or patches to sudo since I started maintaining it (plus the
original authors).
Todd C. Miller [Mon, 13 Jun 2011 11:20:28 +0000 (07:20 -0400)]
Preserve SHELL variable for "sudo -s". Otherwise we can end up
with a situation where the SHELL variable and the actual shell being
run do not match.
Todd C. Miller [Fri, 10 Jun 2011 19:28:58 +0000 (15:28 -0400)]
Only enable Solaris project support when setproject() is present in
libproject.
Todd C. Miller [Fri, 10 Jun 2011 19:26:35 +0000 (15:26 -0400)]
Explicitly set mode and owner of /etc/sudoers instead of relying
on "cp -p" to work in the postinstall script. On AIX 6.1 at least
the postinstall script runs before the final file permissions are set.
Todd C. Miller [Thu, 9 Jun 2011 16:52:51 +0000 (12:52 -0400)]
Refer the user to the "Command Environment" section in description
of sudo's -i option.
Todd C. Miller [Thu, 9 Jun 2011 12:54:46 +0000 (08:54 -0400)]
Fix typo
Todd C. Miller [Wed, 8 Jun 2011 17:18:23 +0000 (13:18 -0400)]
If there is no old dependency for an object file, use the MANIFEST
to find its source.
Todd C. Miller [Wed, 8 Jun 2011 17:17:51 +0000 (13:17 -0400)]
Remove dependency for getgrouplist.lo as we don't ship that source file.
Todd C. Miller [Tue, 7 Jun 2011 15:45:06 +0000 (11:45 -0400)]
Do not declare yyparse() static as the actual function generated
by yacc is extern.
Todd C. Miller [Mon, 6 Jun 2011 18:40:42 +0000 (14:40 -0400)]
Remove locale files in "make uninstall"
Todd C. Miller [Mon, 6 Jun 2011 17:38:54 +0000 (13:38 -0400)]
Add Basque translation and sync Finish and Ukranian translations.
Todd C. Miller [Mon, 6 Jun 2011 15:02:52 +0000 (11:02 -0400)]
FreeBSD no longer needs the main sudo binary to link with -lpam
now that plug-ins are loaded with RTLD_GLOBAL.
Todd C. Miller [Mon, 6 Jun 2011 14:53:58 +0000 (10:53 -0400)]
Load plugins with RTLD_GLOBAL instead of RTLD_LOCAL. This fixes
problems with pam modules not having access to symbols provided by
libpam on some platforms. Affects FreeBSD and SLES 10 at least.
Todd C. Miller [Mon, 6 Jun 2011 12:46:50 +0000 (08:46 -0400)]
Move xgettext invocation out of update-po target into update-pot
Todd C. Miller [Sat, 4 Jun 2011 22:27:59 +0000 (18:27 -0400)]
Regenerate .pot files for 1.8.2rc2