]>
granicus.if.org Git - sudo/log
Todd C. Miller [Tue, 10 Jul 2012 16:42:33 +0000 (12:42 -0400)]
Move log_denial() calls and logic to log_failure().
Move authentication failure logging to log_auth_failure().
Both of these call audit_failure() for us.
This subtly changes logging for commands that are denied by sudoers
but where the user failed to enter the correct password. Previously,
these would be logged as "N incorrect password attempts" but now
are logged as "command not allowed". Fixes bug #563
Todd C. Miller [Fri, 6 Jul 2012 14:10:03 +0000 (10:10 -0400)]
Do not set a resource limit to zero when we are unable to fetch a
value from /etc/security/limits.
Todd C. Miller [Thu, 5 Jul 2012 13:34:20 +0000 (09:34 -0400)]
Add "Provides: sudo" to debian sudo-ldap package
Todd C. Miller [Mon, 2 Jul 2012 17:34:35 +0000 (13:34 -0400)]
Define NO_VIZ for zlib when gcc doesn't support symbol visibility
attributes.
Todd C. Miller [Mon, 2 Jul 2012 15:20:05 +0000 (11:20 -0400)]
Use the autoconf cache when checking for symbol export control support.
Todd C. Miller [Mon, 2 Jul 2012 14:12:41 +0000 (10:12 -0400)]
Add configure check for building PIE executables instead of doing
it in mkpkg.
Todd C. Miller [Mon, 2 Jul 2012 12:24:57 +0000 (08:24 -0400)]
MacOS pp backend doesn't like modes longer than 4 characters.
Todd C. Miller [Sun, 1 Jul 2012 17:47:25 +0000 (13:47 -0400)]
Add -Wc,-fstack-protector to LT_LDFLAGS instead of adding
-fstack-protector to LDFLAGS so it doesn't get stripped out. Libtool
will strip -fstack-protector from the linker flags and we always
link with libtool.
Todd C. Miller [Fri, 29 Jun 2012 20:11:27 +0000 (16:11 -0400)]
Regen for sudo 1.8.6
Todd C. Miller [Fri, 29 Jun 2012 16:41:59 +0000 (12:41 -0400)]
Document improved Tivoli Directory Server support.
Todd C. Miller [Fri, 29 Jun 2012 16:14:45 +0000 (12:14 -0400)]
Add support for ldaps using Tivoli LDAP libraries.
Add ldap.conf option to specify Tivoli key db password.
Allow TLS ciphers to be configured for Tivoli.
Todd C. Miller [Thu, 28 Jun 2012 19:42:38 +0000 (15:42 -0400)]
Tivoli Directory Server 6.3 libs always return a (bogus) error
when setting LDAP_OPT_CONNECT_TIMEOUT.
Todd C. Miller [Thu, 28 Jun 2012 19:01:02 +0000 (15:01 -0400)]
Update
Todd C. Miller [Thu, 28 Jun 2012 18:58:15 +0000 (14:58 -0400)]
Treat LDAP_OPT_CONNECT_TIMEOUT (Tivoli Directory Server 6.3) the
same as LDAP_OPT_CONNECT_TIMEOUT (OpenSSH).
Don't make failure to a set an ldap option fatal.
Todd C. Miller [Wed, 27 Jun 2012 21:04:39 +0000 (17:04 -0400)]
Zero pointers in sudo_user struct after freeing, just in case.
Todd C. Miller [Wed, 27 Jun 2012 20:56:55 +0000 (16:56 -0400)]
Free user_gids in close function if it has not already been freed.
Todd C. Miller [Wed, 27 Jun 2012 20:50:56 +0000 (16:50 -0400)]
Defer group ID to name resolution until we actually need it.
Todd C. Miller [Wed, 27 Jun 2012 19:17:18 +0000 (15:17 -0400)]
It is safe to read in sudo.conf before calling user_info().
Todd C. Miller [Wed, 27 Jun 2012 17:41:58 +0000 (13:41 -0400)]
Use MAX_UID_T_LEN + 1 for uid/gid buffers, not MAX_UID_T_LEN to
prevent potential truncation. Bug #562.
Todd C. Miller [Mon, 25 Jun 2012 20:16:25 +0000 (16:16 -0400)]
If installing with installp, error out if there is already an
instance of the rpm package installed.
Todd C. Miller [Mon, 25 Jun 2012 18:00:11 +0000 (14:00 -0400)]
Add --disable-nls for AIX
Todd C. Miller [Fri, 22 Jun 2012 14:57:23 +0000 (10:57 -0400)]
Debian sudo-ldap packages should now depend on libldap-2.4-2, not
libldap2.
Todd C. Miller [Thu, 21 Jun 2012 17:41:39 +0000 (13:41 -0400)]
Add Homepage and Bugs to debian control file.
Todd C. Miller [Wed, 20 Jun 2012 18:18:14 +0000 (14:18 -0400)]
fix typo when setting aix_freeware
Todd C. Miller [Wed, 20 Jun 2012 17:38:17 +0000 (13:38 -0400)]
Don't run regress tests or sudoers sanity check (using the newly-built
visudo) when cross compiling. Bug #560
Todd C. Miller [Wed, 20 Jun 2012 16:58:16 +0000 (12:58 -0400)]
Rename foo.sym -> foo.exp
Remove foo.map from the repo and generate it on demand
Use a loader option file for HP-UX ld to explicitly export symbols
Todd C. Miller [Wed, 20 Jun 2012 16:32:51 +0000 (12:32 -0400)]
Remove extraneous backslash
Todd C. Miller [Wed, 20 Jun 2012 13:38:25 +0000 (09:38 -0400)]
Don't check for errorx as an exported symbols as it is now a macro.
Check for user_in_group() instead.
Todd C. Miller [Tue, 19 Jun 2012 17:23:37 +0000 (13:23 -0400)]
Adjust ld map file support to use an anonymous scope to match the
updated .map files.
Todd C. Miller [Mon, 18 Jun 2012 18:29:06 +0000 (14:29 -0400)]
Older versions of Solaris lack ngettext()
Todd C. Miller [Mon, 18 Jun 2012 18:10:50 +0000 (14:10 -0400)]
Move the check for -static-libgcc until after AC_LANG_WERROR
has been called and use AX_CHECK_COMPILE_FLAG().
Todd C. Miller [Mon, 18 Jun 2012 18:03:39 +0000 (14:03 -0400)]
Sudo defines HAVE_SETLOCALE not HAVE_LOCALE_H
Todd C. Miller [Mon, 18 Jun 2012 18:03:11 +0000 (14:03 -0400)]
Fix gcc 2.x variant macro support.
Todd C. Miller [Mon, 18 Jun 2012 17:47:01 +0000 (13:47 -0400)]
Fix compilation on gcc 2.95 and other compilers that only allow
variable declarations at the beginning of a block.
Todd C. Miller [Mon, 18 Jun 2012 14:21:05 +0000 (10:21 -0400)]
Link check_symbols with SUDO_LIBS to make sure we link with the
requisite libraries to successfully dlopen sudoers.so. This is
needed on HP-UX where a program dlopen()ing a shared object that
uses pthreads must also be linked with pthreads (and HP-UX LDAP
uses pthreads).
Todd C. Miller [Mon, 18 Jun 2012 14:21:01 +0000 (10:21 -0400)]
Add check for exported local symbols. This will cause a "make
check" failure on systems where we don't support symbol hiding.
Todd C. Miller [Mon, 18 Jun 2012 13:50:42 +0000 (09:50 -0400)]
Additional ${foo} -> $(foo) Makefile tweaks.
Todd C. Miller [Mon, 18 Jun 2012 13:25:29 +0000 (09:25 -0400)]
No need to provide a name for the scope in the map file since we
don't use the it for versioning.
Todd C. Miller [Mon, 18 Jun 2012 00:23:21 +0000 (20:23 -0400)]
Add regress test for symbol visibility.
Todd C. Miller [Fri, 15 Jun 2012 18:34:15 +0000 (14:34 -0400)]
sudo 1.8.6
Todd C. Miller [Fri, 15 Jun 2012 18:18:23 +0000 (14:18 -0400)]
Add support for controlling symbol visibility using the HP and
Solaris C compilers.
Todd C. Miller [Fri, 15 Jun 2012 16:33:12 +0000 (12:33 -0400)]
Use the expanded io log dir when updating the sequence number.
Includes a workaround for older versions of sudo where the
sequence number was stored in the unexpanded io log dir.
Todd C. Miller [Thu, 14 Jun 2012 20:17:15 +0000 (16:17 -0400)]
Simplify "sudo -s" argv rewriting.
Todd C. Miller [Thu, 14 Jun 2012 15:35:02 +0000 (11:35 -0400)]
Don't use a map file for sudo_noexec.so since Solaris ld doesn't
allow '*' in the global section. The libtool export flag is now
added to LT_LDFLAGS instead of commenting/uncommenting lines.
Todd C. Miller [Wed, 13 Jun 2012 20:57:49 +0000 (16:57 -0400)]
The visibility attribute was actually added in gcc 3.3.x, not 4.0.
Just assume that if -fvisibility=hidden works that the attribute
is usable.
Todd C. Miller [Wed, 13 Jun 2012 20:21:45 +0000 (16:21 -0400)]
Export group cache from sudoers.so for system_group.so to use.
Todd C. Miller [Wed, 13 Jun 2012 18:01:16 +0000 (14:01 -0400)]
Use gcc's visibility attribute to specify when symbols are visible
or hidden, if available. If not available, use an ELF version
script if it is supported. If all else fails, fall back to using
libtool's -export-symbols.
Todd C. Miller [Tue, 12 Jun 2012 17:52:20 +0000 (13:52 -0400)]
Add mode for installed locale files but leave the directories with
default mode and owner.
Todd C. Miller [Mon, 11 Jun 2012 19:07:16 +0000 (15:07 -0400)]
Install AIX packages under /opt/freeware with links in /usr/bin and
/usr/sbin. This matches the layout of the sudo package from AIX
freeware.
Todd C. Miller [Mon, 11 Jun 2012 14:45:34 +0000 (10:45 -0400)]
Install shared objects with mode 0644 except on HP-UX which needs
the executable bit set.
Todd C. Miller [Mon, 11 Jun 2012 14:17:19 +0000 (10:17 -0400)]
Make installed file modes consistent with the file modes in the
sudo package.
Todd C. Miller [Fri, 8 Jun 2012 17:28:47 +0000 (13:28 -0400)]
Add "%:" prefix when talking about QAS non-Unix group support.
Todd C. Miller [Fri, 8 Jun 2012 17:27:16 +0000 (13:27 -0400)]
Fix packaging of symbolic links on HP-UX when the link source already
exists in the filesystem.
Todd C. Miller [Fri, 8 Jun 2012 17:26:16 +0000 (13:26 -0400)]
Only specify prefix if we are overriding the default value.
Fixes the man dir (/usr/local/man vs. /usr/local/share/man).
Todd C. Miller [Fri, 8 Jun 2012 13:37:43 +0000 (09:37 -0400)]
Fix setting of sudoedit_man variable.
Todd C. Miller [Fri, 8 Jun 2012 13:37:08 +0000 (09:37 -0400)]
Echo the command when linking the sudoedit manual.
Todd C. Miller [Thu, 7 Jun 2012 17:59:36 +0000 (13:59 -0400)]
Build .deb packages with selinux support.
Todd C. Miller [Mon, 4 Jun 2012 19:06:04 +0000 (15:06 -0400)]
Don't list paths for unstripped binaries in the lintial overrides.
Todd C. Miller [Mon, 4 Jun 2012 18:53:47 +0000 (14:53 -0400)]
Add support for Installed-Size header in control file, required by
newer debian versions.
Todd C. Miller [Mon, 4 Jun 2012 17:22:47 +0000 (13:22 -0400)]
Fix extended description in .deb files.
Todd C. Miller [Mon, 4 Jun 2012 17:13:38 +0000 (13:13 -0400)]
Add Depends, Replaces and Conflicts headers for .deb packages.
Todd C. Miller [Fri, 1 Jun 2012 20:27:17 +0000 (16:27 -0400)]
If there are no privs to print, write the message to the lbuf instead
of printing it directly.
Todd C. Miller [Thu, 31 May 2012 20:10:44 +0000 (16:10 -0400)]
Set -e in %pos and %preun for debian to quiet a lintian warning.
Todd C. Miller [Thu, 31 May 2012 19:50:16 +0000 (15:50 -0400)]
Install sudoedit and the sudoedit manual as symbolic links, not
hard links and package them as such.
Todd C. Miller [Thu, 31 May 2012 18:26:16 +0000 (14:26 -0400)]
Make sudo binary permissions 755 instead of 111
Add lintian overrides file for .deb files.
Todd C. Miller [Thu, 31 May 2012 18:03:41 +0000 (14:03 -0400)]
Replace out of date MAN_POSTINSTALL with MANCOMPRESS and MANCOMPRESSEXT
which can be used to compress the installed manual pages.
Compress the man pages for .deb files to appease lintian.
Todd C. Miller [Thu, 31 May 2012 18:02:26 +0000 (14:02 -0400)]
Debian fixes:
* fix modes to be more in line with what Debian expects
* add section
* install LICENSE as copyright and ChangeLog as changelog
* create stub changelog.debian
Todd C. Miller [Thu, 31 May 2012 18:00:38 +0000 (14:00 -0400)]
Fix find command to properly skip files in the DEBIAN dir when
building md5sums.
Todd C. Miller [Thu, 31 May 2012 14:20:40 +0000 (10:20 -0400)]
Use a debian-compliant package maintainer field.
Todd C. Miller [Wed, 30 May 2012 14:46:02 +0000 (10:46 -0400)]
No need to loop over atomic_writev(), it guarantees to write all
data or return an error.
Fix handling of stdout/stderr that contains "\r\n" and handle a
"\r\n" pair that spans a buffer.
Todd C. Miller [Tue, 29 May 2012 18:28:42 +0000 (14:28 -0400)]
Update for sudo 1.8.5p2
Todd C. Miller [Tue, 29 May 2012 17:46:28 +0000 (13:46 -0400)]
Instead of doing extra write()s when replaying stdout, build up a
vector for writev() instead. This results in far fewer system
calls.
Todd C. Miller [Sun, 27 May 2012 16:48:55 +0000 (12:48 -0400)]
Provide unhooked version of getenv() and use it when looking up
DISPLAY and SUDO_ASKPASS in the environment.
Todd C. Miller [Fri, 25 May 2012 20:24:42 +0000 (16:24 -0400)]
When replaying a log of stdout or stderr, do newline to carriage
return + linefeed conversion. We cannot have termios do this for
us since we've disabled output postprocessing (POST) when setting
raw mode.
Todd C. Miller [Thu, 24 May 2012 15:03:10 +0000 (11:03 -0400)]
When checking for -fstack-protector, treat warnings as fatal errors.
Todd C. Miller [Tue, 22 May 2012 19:45:50 +0000 (15:45 -0400)]
Fix test for -z relro
Todd C. Miller [Tue, 22 May 2012 17:26:02 +0000 (13:26 -0400)]
Add m4/ax_check_compile_flag.m4 and m4/ax_check_link_flag.m4
Todd C. Miller [Tue, 22 May 2012 17:23:19 +0000 (13:23 -0400)]
Build with -fstack-protector and link with -zrelo where supported.
Added --disable-hardening option to disable hardening options.
Todd C. Miller [Mon, 21 May 2012 19:39:24 +0000 (15:39 -0400)]
Add tests for sudoers mode, owner and group checks.
Todd C. Miller [Mon, 21 May 2012 17:59:02 +0000 (13:59 -0400)]
If sudoers_mode is group-readable but the actual sudoers file is
not, open the file as uid 0, not uid 1. This fixes a problem when
sudoers has a more restrictive mode than what sudo expects to find.
In older versions, sudo would silently chmod the file to add the
group-readable bit.
Todd C. Miller [Mon, 21 May 2012 17:30:59 +0000 (13:30 -0400)]
No longer throw an error if sudoers is a symbolic link. Deprecated
the --with-stow option as that is now (effectively) the default.
Todd C. Miller [Fri, 18 May 2012 18:29:55 +0000 (14:29 -0400)]
Add basic tests for #include and #includedir
Todd C. Miller [Fri, 18 May 2012 18:29:29 +0000 (14:29 -0400)]
Add -U sudoers_uid option to testsudoers.
Todd C. Miller [Thu, 17 May 2012 19:53:37 +0000 (15:53 -0400)]
Update for 1.8.5p1
Todd C. Miller [Thu, 17 May 2012 19:42:57 +0000 (15:42 -0400)]
Fix #includedir; from Mike Frysinger
Todd C. Miller [Thu, 17 May 2012 14:20:14 +0000 (10:20 -0400)]
Don't prompt for a password if the user is in the exempt group, is
root, or is running the command as themselves even if the -k option
was specified. This makes "sudo -k command" consistent with the
behavior one would get if the user ran "sudo -k" immediately before
running the command.
Todd C. Miller [Tue, 15 May 2012 16:15:30 +0000 (12:15 -0400)]
Fix capitalization
Todd C. Miller [Tue, 15 May 2012 16:08:22 +0000 (12:08 -0400)]
Build PIE executable on Mac OS X 10.5 and above.
Todd C. Miller [Mon, 14 May 2012 18:48:18 +0000 (14:48 -0400)]
Update for sudo 1.8.4p5
Todd C. Miller [Mon, 14 May 2012 18:47:48 +0000 (14:47 -0400)]
Add missing break between AF_INET and AF_INET6 in addr_matches_if_netmask()
Todd C. Miller [Mon, 14 May 2012 13:47:17 +0000 (09:47 -0400)]
Move systrace monitor code to the attic
Todd C. Miller [Fri, 11 May 2012 11:57:01 +0000 (07:57 -0400)]
The pointer to the siginfo_t struct in a signal handler may be NULL.
Todd C. Miller [Thu, 10 May 2012 15:06:46 +0000 (11:06 -0400)]
Fix an alignment problem on NetBSD systems with a 64-bit time_t and
strict alignment. Based on a patch from Martin Husemann.
Todd C. Miller [Thu, 10 May 2012 14:01:26 +0000 (10:01 -0400)]
Add offsetof macro for those without it.
Todd C. Miller [Thu, 10 May 2012 14:01:09 +0000 (10:01 -0400)]
add system_group plugin
Todd C. Miller [Wed, 9 May 2012 13:46:38 +0000 (09:46 -0400)]
Implement RTLD_NEXT and fix RTLD_DEFAULT for HP-UX.
Todd C. Miller [Tue, 8 May 2012 20:59:10 +0000 (16:59 -0400)]
Mention system_group plugin
Todd C. Miller [Tue, 8 May 2012 20:57:06 +0000 (16:57 -0400)]
update depends
Todd C. Miller [Tue, 8 May 2012 20:39:37 +0000 (16:39 -0400)]
Only call gr_delref() when use sudo's password caching functions.
Todd C. Miller [Tue, 8 May 2012 20:38:36 +0000 (16:38 -0400)]
Add missing dependency on libreplace.la