]> granicus.if.org Git - sudo/log
sudo
14 years agoIf no iolog file is specified by the policy plugin, use io_nextid()
Todd C. Miller [Wed, 29 Dec 2010 16:07:45 +0000 (11:07 -0500)]
If no iolog file is specified by the policy plugin, use io_nextid()
to determine the next file in the sequence.

14 years agoDocument iolog_compress in command_info
Todd C. Miller [Tue, 28 Dec 2010 17:25:06 +0000 (12:25 -0500)]
Document iolog_compress in command_info

14 years agoAdd support for the iolog_compress variable in command_info.
Todd C. Miller [Tue, 28 Dec 2010 17:23:18 +0000 (12:23 -0500)]
Add support for the iolog_compress variable in command_info.

14 years agoAdd sigsetjmp() calls to all plugin entry points just to be safe.
Todd C. Miller [Tue, 28 Dec 2010 16:02:12 +0000 (11:02 -0500)]
Add sigsetjmp() calls to all plugin entry points just to be safe.

14 years agoDon't need iolog variables in struct command_details, they are for
Todd C. Miller [Tue, 28 Dec 2010 15:50:45 +0000 (10:50 -0500)]
Don't need iolog variables in struct command_details, they are for
the I/O log plugins to handle.

14 years agoDocument use of mkdtemp() for iolog path teplates
Todd C. Miller [Mon, 27 Dec 2010 20:43:01 +0000 (15:43 -0500)]
Document use of mkdtemp() for iolog path teplates

14 years agoregen
Todd C. Miller [Mon, 27 Dec 2010 19:45:13 +0000 (14:45 -0500)]
regen

14 years agoDocument iolog_file and supported escape sequences for sudoers.
Todd C. Miller [Mon, 27 Dec 2010 19:43:50 +0000 (14:43 -0500)]
Document iolog_file and supported escape sequences for sudoers.
Clarify that iolog_file can contain directories.

14 years agoFix building of mkstemps/mkdtemp replacements.
Todd C. Miller [Mon, 27 Dec 2010 19:07:49 +0000 (14:07 -0500)]
Fix building of mkstemps/mkdtemp replacements.

14 years agoProvide mkdtemp() for systems without it.
Todd C. Miller [Mon, 27 Dec 2010 18:49:49 +0000 (13:49 -0500)]
Provide mkdtemp() for systems without it.

14 years agoFix typo
Todd C. Miller [Mon, 27 Dec 2010 18:49:06 +0000 (13:49 -0500)]
Fix typo

14 years agoOnly use mkdtemp() if the path ends in at least 6 Xs since otherwise
Todd C. Miller [Mon, 27 Dec 2010 17:32:28 +0000 (12:32 -0500)]
Only use mkdtemp() if the path ends in at least 6 Xs since otherwise
glibc mkdtemp() returns EINVAL.

14 years agoAllow sudoers to specify the iolog file in addition to the iolog dir.
Todd C. Miller [Mon, 27 Dec 2010 17:18:32 +0000 (12:18 -0500)]
Allow sudoers to specify the iolog file in addition to the iolog dir.
Add escape sequence support to iolog file and dir: sequence number,
    user, group, runas_user, runas_group, hostname and command in
    addition to any escape sequence recognized by strftime(3).

14 years agoAdd missing sigsetjmp() call in I/O plugin open function.
Todd C. Miller [Mon, 27 Dec 2010 16:24:47 +0000 (11:24 -0500)]
Add missing sigsetjmp() call in I/O plugin open function.
Fixes a crash when the I/O plugin calls error(), errorx() or log_error().

14 years agoGive the policy module fine-grained control over what the I/O plugin
Todd C. Miller [Tue, 21 Dec 2010 22:43:18 +0000 (17:43 -0500)]
Give the policy module fine-grained control over what the I/O plugin
logs.

14 years agoClear OPOST from c_oflag like we used to. Fixes screen-based editors
Todd C. Miller [Tue, 21 Dec 2010 17:22:07 +0000 (12:22 -0500)]
Clear OPOST from c_oflag like we used to.  Fixes screen-based editors
such as vi.

14 years agoClarify umask option description. From Reuben Thomas.
Todd C. Miller [Tue, 21 Dec 2010 15:23:45 +0000 (10:23 -0500)]
Clarify umask option description.  From Reuben Thomas.

14 years agoPick last match in LDAP sudoers too
Todd C. Miller [Mon, 20 Dec 2010 21:37:44 +0000 (16:37 -0500)]
Pick last match in LDAP sudoers too

14 years agoDocument iolog_file, iolog_dir and use_pty
Todd C. Miller [Mon, 20 Dec 2010 21:29:08 +0000 (16:29 -0500)]
Document iolog_file, iolog_dir and use_pty

14 years agoAdapt plugins to version I/O logging ABI 1.1
Todd C. Miller [Mon, 20 Dec 2010 21:28:20 +0000 (16:28 -0500)]
Adapt plugins to version I/O logging ABI 1.1

14 years agoAdd use_pty command_info flag for policies to indicate that a
Todd C. Miller [Mon, 20 Dec 2010 21:27:46 +0000 (16:27 -0500)]
Add use_pty command_info flag for policies to indicate that a
pty should be allocated even if no I/O logging is performed.

14 years agoAdd remaining plugin convenience functions
Todd C. Miller [Mon, 20 Dec 2010 21:26:30 +0000 (16:26 -0500)]
Add remaining plugin convenience functions

14 years agoChange I/O log API to pass in command info to the I/O log open function.
Todd C. Miller [Mon, 20 Dec 2010 21:20:11 +0000 (16:20 -0500)]
Change I/O log API to pass in command info to the I/O log open function.
Add iolog_file and iolog_dir parameters to command info.
This allows the policy plugin to specify the I/O log pathname.
Add convenience functions for calling plugin functions that
handle ABI backwards compatibility.

14 years agoRemove useless cast
Todd C. Miller [Mon, 20 Dec 2010 21:16:08 +0000 (16:16 -0500)]
Remove useless cast

14 years agoBump version to 1.8.0b3
Todd C. Miller [Fri, 17 Dec 2010 21:36:45 +0000 (16:36 -0500)]
Bump version to 1.8.0b3

14 years agoRemove extraneous newline
Todd C. Miller [Mon, 13 Dec 2010 21:58:33 +0000 (16:58 -0500)]
Remove extraneous newline

14 years agoMake I/O log dir configurable.
Todd C. Miller [Fri, 10 Dec 2010 19:14:35 +0000 (14:14 -0500)]
Make I/O log dir configurable.

14 years agoRename io_logdir to iolog_dir
Todd C. Miller [Fri, 10 Dec 2010 19:13:51 +0000 (14:13 -0500)]
Rename io_logdir to iolog_dir

14 years agoAdd missing '*' that prevented the generic ELF case from matching.
Todd C. Miller [Tue, 7 Dec 2010 20:29:11 +0000 (15:29 -0500)]
Add missing '*' that prevented the generic ELF case from matching.

14 years agoIf file(1) can't identify the ELF binary type, try readelf(1).
Todd C. Miller [Tue, 7 Dec 2010 18:36:27 +0000 (13:36 -0500)]
If file(1) can't identify the ELF binary type, try readelf(1).

14 years agoUse %u to print uid/gid, not %lu and adjust casts to match.
Todd C. Miller [Tue, 30 Nov 2010 20:21:36 +0000 (15:21 -0500)]
Use %u to print uid/gid, not %lu and adjust casts to match.

14 years agoClarify ordering of entries and attributes.
Todd C. Miller [Tue, 30 Nov 2010 20:05:44 +0000 (15:05 -0500)]
Clarify ordering of entries and attributes.

14 years agoFix typo and editing goof.
Todd C. Miller [Tue, 30 Nov 2010 18:40:25 +0000 (13:40 -0500)]
Fix typo and editing goof.

14 years agoMerge in ordered LDAP entry support from Andreas Mueller.
Todd C. Miller [Tue, 30 Nov 2010 18:34:31 +0000 (13:34 -0500)]
Merge in ordered LDAP entry support from Andreas Mueller.

14 years agoMake sure we don't dereference a NULL handle.
Todd C. Miller [Tue, 30 Nov 2010 16:59:28 +0000 (11:59 -0500)]
Make sure we don't dereference a NULL handle.

14 years agoAdd support for RHEL 6 file modes that include a trailing dot on files with an SELinu...
Todd C. Miller [Wed, 24 Nov 2010 16:23:08 +0000 (11:23 -0500)]
Add support for RHEL 6 file modes that include a trailing dot on files with an SELinux security context

14 years agoexec_setup() does not need to setuid(0), the Ubuntu issue was in
Todd C. Miller [Tue, 23 Nov 2010 12:35:27 +0000 (07:35 -0500)]
exec_setup() does not need to setuid(0), the Ubuntu issue was in
the sudoers module.

14 years agocreate_admin_success_flag() should use restore_perms() rather than
Todd C. Miller [Tue, 23 Nov 2010 12:34:22 +0000 (07:34 -0500)]
create_admin_success_flag() should use restore_perms() rather than
set_perms() to restore the uid.

14 years agoIn exec_setup() call setuid(0) to make certain the subsequent
Todd C. Miller [Tue, 23 Nov 2010 12:26:21 +0000 (07:26 -0500)]
In exec_setup() call setuid(0) to make certain the subsequent
uid and gid changes will succeed.  Fixes a problem on Ubuntu.

14 years agoError out if we cannot change to root's uid so we catch the failure early.
Todd C. Miller [Tue, 23 Nov 2010 12:25:03 +0000 (07:25 -0500)]
Error out if we cannot change to root's uid so we catch the failure early.

14 years agofix typo; from Michael T Hunter
Todd C. Miller [Mon, 22 Nov 2010 20:45:10 +0000 (15:45 -0500)]
fix typo; from Michael T Hunter

14 years agoIn sudoedit mode, assume command line arguments are paths and
Todd C. Miller [Mon, 22 Nov 2010 15:27:29 +0000 (10:27 -0500)]
In sudoedit mode, assume command line arguments are paths and
pass FNM_PATHNAME to fnmatch().

14 years agoAdd workaround for an error in sys/types.h on HP-UX 11.23 when
Todd C. Miller [Sat, 20 Nov 2010 21:26:53 +0000 (16:26 -0500)]
Add workaround for an error in sys/types.h on HP-UX 11.23 when
large file support is enabled.  Defining _XOPEN_SOURCE_EXTENDED
avoids the broken bits of the header file.

14 years agoFix SUDO_MAILDIR usage of AC_LANG_PROGRAM
Todd C. Miller [Sat, 20 Nov 2010 21:23:39 +0000 (16:23 -0500)]
Fix SUDO_MAILDIR usage of AC_LANG_PROGRAM

14 years agoFor Tru64, strip off beta version.
Todd C. Miller [Sat, 20 Nov 2010 15:37:05 +0000 (10:37 -0500)]
For Tru64, strip off beta version.

14 years agoAvoid conflicts with system definitions in grp.h and pwd.h
Todd C. Miller [Sat, 20 Nov 2010 15:33:23 +0000 (10:33 -0500)]
Avoid conflicts with system definitions in grp.h and pwd.h

14 years agoInclude stdio.h after zlib.h, not before. We need the large file defines
Todd C. Miller [Sat, 20 Nov 2010 14:59:44 +0000 (09:59 -0500)]
Include stdio.h after zlib.h, not before.  We need the large file defines
to come first.

14 years agoregen
Todd C. Miller [Fri, 19 Nov 2010 21:57:21 +0000 (16:57 -0500)]
regen

14 years agoDon't clean ChangeLog
Todd C. Miller [Fri, 19 Nov 2010 19:06:53 +0000 (14:06 -0500)]
Don't clean ChangeLog

14 years agoAdd prototype for cleanup()
Todd C. Miller [Fri, 19 Nov 2010 17:58:03 +0000 (12:58 -0500)]
Add prototype for cleanup()

14 years agoAvoid deferencing group_plugin if it is NULL in group_plugin_query().
Todd C. Miller [Thu, 18 Nov 2010 22:09:57 +0000 (17:09 -0500)]
Avoid deferencing group_plugin if it is NULL in group_plugin_query().
This should not happen.

14 years agogroup plugin init function return TRUE when successful
Todd C. Miller [Thu, 18 Nov 2010 22:06:52 +0000 (17:06 -0500)]
group plugin init function return TRUE when successful

14 years agoEnlarge the array of entry wrappers int blocks of 100 entries to
Todd C. Miller [Wed, 17 Nov 2010 23:56:52 +0000 (18:56 -0500)]
Enlarge the array of entry wrappers int blocks of 100 entries to
save on allocation time.  From Andreas Mueller

14 years agoAdd back call to sudo_ldap_timefilter() in sudo_ldap_build_pass2()
Todd C. Miller [Wed, 17 Nov 2010 12:31:07 +0000 (07:31 -0500)]
Add back call to sudo_ldap_timefilter() in sudo_ldap_build_pass2()
that was mistakenly dropped.

14 years agoMention that sudo needs "ar" to build.
Todd C. Miller [Tue, 16 Nov 2010 15:07:46 +0000 (10:07 -0500)]
Mention that sudo needs "ar" to build.

14 years agoFail with a more useful error if "ar" is not found.
Todd C. Miller [Tue, 16 Nov 2010 15:03:18 +0000 (10:03 -0500)]
Fail with a more useful error if "ar" is not found.

14 years agoMerge in ordered LDAP entry support from Andreas Mueller
Todd C. Miller [Sun, 14 Nov 2010 18:22:38 +0000 (13:22 -0500)]
Merge in ordered LDAP entry support from Andreas Mueller
and add local changes from the 1.7 branch.

14 years agoAdd timed entry support from Andreas Mueller.
Todd C. Miller [Fri, 12 Nov 2010 20:26:35 +0000 (15:26 -0500)]
Add timed entry support from Andreas Mueller.

14 years agoDon't try to unload if group_plugin is NULL.
Todd C. Miller [Fri, 12 Nov 2010 18:14:35 +0000 (13:14 -0500)]
Don't try to unload if group_plugin is NULL.
Don't call dlclose() if group_handle is NULL

14 years agoIt is now plugin_cleanup(), not cleanup()
Todd C. Miller [Fri, 12 Nov 2010 18:03:28 +0000 (13:03 -0500)]
It is now plugin_cleanup(), not cleanup()

14 years agoCall plugin_cleanup(), not cleanup()
Todd C. Miller [Fri, 12 Nov 2010 18:02:15 +0000 (13:02 -0500)]
Call plugin_cleanup(), not cleanup()

14 years agoUse efree() not free() and remove malloc.h include since we never
Todd C. Miller [Thu, 11 Nov 2010 21:10:57 +0000 (16:10 -0500)]
Use efree() not free() and remove malloc.h include since we never
directly call malloc() or free().

14 years agoset PSTAMP for Solaris and move the backend-specific bits to their
Todd C. Miller [Tue, 9 Nov 2010 16:13:06 +0000 (11:13 -0500)]
set PSTAMP for Solaris and move the backend-specific bits to their
own %if [xxx] %endif blocks in %set.

14 years agosync with git repo
Todd C. Miller [Tue, 9 Nov 2010 15:55:50 +0000 (10:55 -0500)]
sync with git repo

14 years agoOnly substitute file zlib files when using the builtin zlib
Todd C. Miller [Tue, 9 Nov 2010 15:34:08 +0000 (10:34 -0500)]
Only substitute file zlib files when using the builtin zlib

14 years agoGive up on using VPATH to find sources as it is implemented inconsistenly
Todd C. Miller [Tue, 9 Nov 2010 15:27:02 +0000 (10:27 -0500)]
Give up on using VPATH to find sources as it is implemented inconsistenly
in different versions of make.

14 years agoInclude config.h before any other includes to make sure we get the
Todd C. Miller [Tue, 9 Nov 2010 13:55:55 +0000 (08:55 -0500)]
Include config.h before any other includes to make sure we get the
right value for _FILE_OFFSET_BITS.

14 years agoAdd zlib
Todd C. Miller [Tue, 9 Nov 2010 13:00:41 +0000 (08:00 -0500)]
Add zlib

14 years agoAdd missing targets
Todd C. Miller [Tue, 9 Nov 2010 12:41:46 +0000 (07:41 -0500)]
Add missing targets

14 years agog/c unused $(GENERATED)
Todd C. Miller [Tue, 9 Nov 2010 12:41:34 +0000 (07:41 -0500)]
g/c unused $(GENERATED)

14 years agoZero out group_plugin on unload just to be safe.
Todd C. Miller [Mon, 8 Nov 2010 22:48:05 +0000 (17:48 -0500)]
Zero out group_plugin on unload just to be safe.

14 years agoUnload group plugin if its init function fails.
Todd C. Miller [Mon, 8 Nov 2010 22:44:32 +0000 (17:44 -0500)]
Unload group plugin if its init function fails.

14 years agoOnly chdir to cwd if it is different from the current cwd or there
Todd C. Miller [Mon, 8 Nov 2010 21:40:11 +0000 (16:40 -0500)]
Only chdir to cwd if it is different from the current cwd or there
is a new root (chroot).

14 years agoBump version to 1.8.0b2
Todd C. Miller [Mon, 8 Nov 2010 16:27:20 +0000 (11:27 -0500)]
Bump version to 1.8.0b2

14 years agoBetter --enable-zlib description
Todd C. Miller [Thu, 28 Oct 2010 18:31:00 +0000 (14:31 -0400)]
Better --enable-zlib description

14 years agoUse system zlib on Linux
Todd C. Miller [Thu, 28 Oct 2010 16:24:05 +0000 (12:24 -0400)]
Use system zlib on Linux
Let configure decide on Solaris
For all others, use builtin zlib

14 years agoAdd large file support.
Todd C. Miller [Thu, 28 Oct 2010 16:10:10 +0000 (12:10 -0400)]
Add large file support.

14 years agoAdd large file support.
Todd C. Miller [Thu, 28 Oct 2010 16:09:17 +0000 (12:09 -0400)]
Add large file support.

14 years agoAdd local copy of zlib for systems that lack it.
Todd C. Miller [Thu, 28 Oct 2010 15:17:40 +0000 (11:17 -0400)]
Add local copy of zlib for systems that lack it.

14 years agoIf perform_io() fails, kill the child before exiting so it doesn't
Todd C. Miller [Fri, 15 Oct 2010 20:24:42 +0000 (16:24 -0400)]
If perform_io() fails, kill the child before exiting so it doesn't
complain about connection reset.  We can get an I/O error if, for
example, and we get EIO reading from stdin.

14 years agoFix complilation on systems with set_auth_parameters()
Todd C. Miller [Tue, 12 Oct 2010 14:47:16 +0000 (10:47 -0400)]
Fix complilation on systems with set_auth_parameters()
Sprinkle volatile to quiet warnings from gcc 2.8.0

14 years agoAvoid potential namespace issues with dlopen() emulation.
Todd C. Miller [Tue, 12 Oct 2010 14:32:47 +0000 (10:32 -0400)]
Avoid potential namespace issues with dlopen() emulation.

14 years agosync
Todd C. Miller [Tue, 12 Oct 2010 14:32:17 +0000 (10:32 -0400)]
sync

14 years agoUse INADDR_NONE instead of casting -1 to in_addr_t (which may not exist).
Todd C. Miller [Tue, 12 Oct 2010 14:31:21 +0000 (10:31 -0400)]
Use INADDR_NONE instead of casting -1 to in_addr_t (which may not exist).

14 years agoMark ChangeLog as PHONY
Todd C. Miller [Tue, 12 Oct 2010 13:36:01 +0000 (09:36 -0400)]
Mark ChangeLog as PHONY
Don't overwrite ChangeLog if we can't run hg

14 years agoHP-UX 10.20 libc has an incompatible getline
Todd C. Miller [Tue, 12 Oct 2010 13:24:24 +0000 (09:24 -0400)]
HP-UX 10.20 libc has an incompatible getline

14 years agoQuiet an HP-UX compiler warning.
Todd C. Miller [Tue, 12 Oct 2010 13:23:52 +0000 (09:23 -0400)]
Quiet an HP-UX compiler warning.

14 years agoCheck for vi even with --with-editor specified; the sample plugin needs it.
Todd C. Miller [Tue, 12 Oct 2010 13:08:09 +0000 (09:08 -0400)]
Check for vi even with --with-editor specified; the sample plugin needs it.

14 years agoFix remaining syntax errors.
Todd C. Miller [Tue, 12 Oct 2010 01:10:34 +0000 (21:10 -0400)]
Fix remaining syntax errors.

14 years agosudo binary depends on the libtool-generated libs
Todd C. Miller [Mon, 11 Oct 2010 21:40:23 +0000 (17:40 -0400)]
sudo binary depends on the libtool-generated libs

14 years agoUse HAVE_DLOPEN instead of HAVE_DLFCN_H when determining whether to
Todd C. Miller [Mon, 11 Oct 2010 21:39:51 +0000 (17:39 -0400)]
Use HAVE_DLOPEN instead of HAVE_DLFCN_H when determining whether to
include the local or system dlfcn.h

14 years agoDon't use run_as_superuser=false on HP-UX
Todd C. Miller [Mon, 11 Oct 2010 20:15:01 +0000 (16:15 -0400)]
Don't use run_as_superuser=false on HP-UX

14 years agoUse memset() instead of zero_bytes() since we don't include sudoers.h
Todd C. Miller [Mon, 11 Oct 2010 19:51:21 +0000 (15:51 -0400)]
Use memset() instead of zero_bytes() since we don't include sudoers.h

14 years agoFix pasto; AF_INET not AF_INET6
Todd C. Miller [Mon, 11 Oct 2010 19:43:59 +0000 (15:43 -0400)]
Fix pasto; AF_INET not AF_INET6

14 years agoActually call shl_load()
Todd C. Miller [Mon, 11 Oct 2010 19:19:00 +0000 (15:19 -0400)]
Actually call shl_load()

14 years agoUpdate from git repo.
Todd C. Miller [Mon, 11 Oct 2010 18:24:10 +0000 (14:24 -0400)]
Update from git repo.
Debian: version numbers now compliant with policy section 5.6.12
HP-UX: minimal changes needed to work on HP-UX 10.20

14 years agoFix dlopen() detection for systems where dlopen() is in a separate library.
Todd C. Miller [Mon, 11 Oct 2010 13:21:56 +0000 (09:21 -0400)]
Fix dlopen() detection for systems where dlopen() is in a separate library.

14 years agoIf pam_acct_mgmt() returns PAM_AUTH_ERR print a (hopefully) more useful
Todd C. Miller [Mon, 11 Oct 2010 13:12:23 +0000 (09:12 -0400)]
If pam_acct_mgmt() returns PAM_AUTH_ERR print a (hopefully) more useful
message and return AUTH_FATAL so sudo does not keep trying to validate
the user.

14 years agosudo_preload_table is an array
Todd C. Miller [Mon, 11 Oct 2010 13:12:07 +0000 (09:12 -0400)]
sudo_preload_table is an array

14 years agoQuiet a compiler warning and fix sudo_preload_table external definition.
Todd C. Miller [Mon, 11 Oct 2010 13:11:46 +0000 (09:11 -0400)]
Quiet a compiler warning and fix sudo_preload_table external definition.