]>
granicus.if.org Git - sudo/log
Todd C. Miller [Sat, 13 Aug 2011 22:35:50 +0000 (18:35 -0400)]
Prepare for sudo 1.7.7
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 22:35:17 +0000 (18:35 -0400)]
Only check gid of sudoers file if it is group-readable or writable.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 22:26:44 +0000 (18:26 -0400)]
configure args on the command line should override builtin defaults.
Add -g to CFLAG for PIE builds.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 22:12:28 +0000 (18:12 -0400)]
Add checks for nroff -c and -Tascii flags
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 22:09:13 +0000 (18:09 -0400)]
When building with gcc on HP-UX, use -march=1.1 to produce portable
binaries on a pa-risc2 host. Previously, the +Dportable option was
used for the HP-UX C compiler but gcc always produced native binaries.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 21:38:34 +0000 (17:38 -0400)]
Fix K&R compilation
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 21:37:58 +0000 (17:37 -0400)]
fix K&R compilation
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 18:43:43 +0000 (14:43 -0400)]
If the user specifies a runas group via sudo's -g option that matches
the runas user's group in the passwd database and that group is not
denied in the Runas_Spec, allow it. Thus, if user root's gid in
/etc/passwd is 0, then "sudo -u root -g root id" is allow even if
no groups are present in the Runas_Spec.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 18:42:57 +0000 (14:42 -0400)]
When checking aliases, also check the contents of the alias in case
there are problems with an alias that is referenced inside another.
Replace the self reference check with real alias cycle detection.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 18:40:17 +0000 (14:40 -0400)]
Set errno to ELOOP in alias_find() if there is a cycle. Set errno
to ENOENT in alias_find() and alias_remove() if the entry could not
be found.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 18:39:32 +0000 (14:39 -0400)]
Increment alias_seqno before calls to alias_remove_recursive() to
avoid false positives with the alias loop detection. Fixes spurious
warnings about unused aliases when they are nested.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 17:50:24 +0000 (13:50 -0400)]
Tivoli Directory Server requires that seconds be present in a
timestamp, even though RFC 4517 states that they are optional.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 17:48:45 +0000 (13:48 -0400)]
Set def_preserve_groups before searching for the command when the
-P flag is specified.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 17:41:06 +0000 (13:41 -0400)]
The group named by exempt_group should not have a % prefix.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 17:39:56 +0000 (13:39 -0400)]
Do not declare yyparse() static as the actual function generated
by yacc is extern.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 17:36:37 +0000 (13:36 -0400)]
Disable noexec for AIX < 5. LDR_PRELOAD is only available in AIX
5.3 and above.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 17:34:54 +0000 (13:34 -0400)]
For SuSE, only use /usr/lib64 as libexec if generating 64-bit
binaries.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 17:33:52 +0000 (13:33 -0400)]
Split out log file word wrap code into its own file. Fixes an
off-by one in the word wrap when the log line length matches
loglinelen.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 16:35:11 +0000 (12:35 -0400)]
Add a NULL check in audit_success() and audit_failure() just to be
on the safe side.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 16:29:52 +0000 (12:29 -0400)]
Fix some potential problems found by the clang static analyzer, none
serious.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 16:11:10 +0000 (12:11 -0400)]
For AIX, keep calling authenticate() until reenter reaches 0.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 15:58:29 +0000 (11:58 -0400)]
Update to autoconf 2.68 and libtool 2.4
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Aug 2011 15:55:59 +0000 (11:55 -0400)]
Add check for NetBSD-style 4-argument skeychallenge() as Gentoo also
has this. Adapted from a patch from Diego Elio Petteno
--HG--
branch : 1.7
Todd C. Miller [Thu, 11 Aug 2011 17:26:00 +0000 (13:26 -0400)]
Fix typo; OPT should be OTP
--HG--
branch : 1.7
Todd C. Miller [Wed, 10 Aug 2011 13:02:58 +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.
--HG--
branch : 1.7
Todd C. Miller [Tue, 9 Aug 2011 18:56:05 +0000 (14:56 -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 pokes sudo_defs_table[] which is a bit naughty,
but avoids requiring stub functions in visudo and testsudoers.
--HG--
branch : 1.7
Todd C. Miller [Wed, 13 Jul 2011 19:51:21 +0000 (15:51 -0400)]
Only run configure with --with-pam-login for RHEL 5 and above.
--HG--
branch : 1.7
Todd C. Miller [Wed, 13 Jul 2011 15:41:49 +0000 (11:41 -0400)]
Fix typo in summary
--HG--
branch : 1.7
Todd C. Miller [Mon, 13 Jun 2011 11:21:18 +0000 (07:21 -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.
--HG--
branch : 1.7
Todd C. Miller [Fri, 10 Jun 2011 19:30:00 +0000 (15:30 -0400)]
Only enable Solaris project support when setproject() is present in
libproject.
--HG--
branch : 1.7
Todd C. Miller [Fri, 10 Jun 2011 19:27:48 +0000 (15:27 -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.
--HG--
branch : 1.7
Todd C. Miller [Fri, 29 Apr 2011 20:07:37 +0000 (16:07 -0400)]
Split ALL, ROLE and TYPE into their own actions. Since you can
only have #ifdefs inside of braces, ROLE and TYPE use a naughty
goto in the non-SELinux case. This is safe because the actions are
in one big switch() statement.
--HG--
branch : 1.7
Todd C. Miller [Fri, 29 Apr 2011 15:25:25 +0000 (11:25 -0400)]
Fix regexp for matching a CIDR-style IPv4 netmask. From Marc Espie.
--HG--
branch : 1.7
Todd C. Miller [Fri, 29 Apr 2011 15:24:55 +0000 (11:24 -0400)]
Remove obsolete warning about runas_default and ordering.
--HG--
branch : 1.7
Todd C. Miller [Mon, 18 Apr 2011 13:30:48 +0000 (09:30 -0400)]
Need to do checks for krb5_verify_user, krb5_init_secure_context
and krb5_get_init_creds_opt_alloc regardless of whether or not
krb5-config is present.
--HG--
branch : 1.7
Todd C. Miller [Mon, 18 Apr 2011 13:24:49 +0000 (09:24 -0400)]
sudo 1.7.6p1 updates
--HG--
branch : 1.7
Todd C. Miller [Thu, 14 Apr 2011 20:42:28 +0000 (16:42 -0400)]
update copyright year
--HG--
branch : 1.7
Todd C. Miller [Thu, 14 Apr 2011 19:09:57 +0000 (15:09 -0400)]
Treat a missing includedir like an empty one and do not return an error.
--HG--
branch : 1.7
Todd C. Miller [Tue, 12 Apr 2011 15:54:03 +0000 (11:54 -0400)]
Fix ARCH setting in cross-compile Solaris packages.
--HG--
branch : 1.7
Todd C. Miller [Tue, 12 Apr 2011 15:53:38 +0000 (11:53 -0400)]
Fix aix version setting.
--HG--
branch : 1.7
Todd C. Miller [Tue, 12 Apr 2011 15:49:39 +0000 (11:49 -0400)]
Remove extraneous parens in LDAP filter when sudoers_search_filter
is enabled that causes a search error. From Matthew Thomas.
--HG--
branch : 1.7
Todd C. Miller [Sat, 9 Apr 2011 16:55:52 +0000 (12:55 -0400)]
Added tag SUDO_1_7_6 for changeset
fafbb7b0aea2
--HG--
branch : 1.7
Todd C. Miller [Sat, 9 Apr 2011 15:28:47 +0000 (11:28 -0400)]
regen for 1.7.6
--HG--
branch : 1.7
Todd C. Miller [Sat, 9 Apr 2011 14:48:33 +0000 (10:48 -0400)]
regen man pages for 1.7.6
--HG--
branch : 1.7
Todd C. Miller [Wed, 6 Apr 2011 13:46:02 +0000 (09:46 -0400)]
Fix warnings when -without-skey, --without-opie, --without-kerb4,
--without-kerb5 or --without-SecurID were specified.
--HG--
branch : 1.7
Todd C. Miller [Tue, 5 Apr 2011 22:15:10 +0000 (18:15 -0400)]
Mention %#gid support in User_List and Runas_List
--HG--
branch : 1.7
Todd C. Miller [Tue, 5 Apr 2011 13:18:13 +0000 (09:18 -0400)]
Merge SETENV and NOSETENV description from 1.8
--HG--
branch : 1.7
Todd C. Miller [Fri, 1 Apr 2011 17:56:20 +0000 (13:56 -0400)]
In dump-only mode, use "root" as the default username instead of
"nobody" as the latter may not be available on all systems.
--HG--
branch : 1.7
Todd C. Miller [Thu, 31 Mar 2011 17:59:44 +0000 (13:59 -0400)]
Fix setting of user_args
--HG--
branch : 1.7
Todd C. Miller [Thu, 31 Mar 2011 17:59:26 +0000 (13:59 -0400)]
Add '!' token to lex tracing
--HG--
branch : 1.7
Todd C. Miller [Thu, 31 Mar 2011 16:49:13 +0000 (12:49 -0400)]
Avoid using pre or post increment in a parameter to a ctype(3)
function as it might be a macro that causes the increment to happen
more than once.
--HG--
branch : 1.7
Todd C. Miller [Wed, 30 Mar 2011 16:28:10 +0000 (12:28 -0400)]
Strip off the beta or release candidate version when building AIX
packages.
--HG--
branch : 1.7
Todd C. Miller [Wed, 30 Mar 2011 12:54:56 +0000 (08:54 -0400)]
getuserattr(user, ...) will fall back to the "default" entry
automatically, there's no need to check "default" manually.
--HG--
branch : 1.7
Todd C. Miller [Wed, 30 Mar 2011 00:32:12 +0000 (20:32 -0400)]
Document parser changes.
--HG--
branch : 1.7
Todd C. Miller [Tue, 29 Mar 2011 21:53:25 +0000 (17:53 -0400)]
Add runasgroup support to testsudoers
--HG--
branch : 1.7
Todd C. Miller [Tue, 29 Mar 2011 21:53:02 +0000 (17:53 -0400)]
More useful exit codes:
* 0 - parsed OK and command matched.
* 1 - parse error
* 2 - command not matched
* 3 - command denied
--HG--
branch : 1.7
Todd C. Miller [Tue, 29 Mar 2011 19:26:25 +0000 (15:26 -0400)]
If there is an existing sudoers file, only install if it passes a
syntax check.
--HG--
branch : 1.7
Todd C. Miller [Tue, 29 Mar 2011 16:57:12 +0000 (12:57 -0400)]
Document %#gid, and %:#nonunix_gid syntax.
--HG--
branch : 1.7
Todd C. Miller [Tue, 29 Mar 2011 16:37:56 +0000 (12:37 -0400)]
Add support to user_in_group() for treating group names that begin with
a '#' as gids.
--HG--
branch : 1.7
Todd C. Miller [Mon, 28 Mar 2011 13:36:17 +0000 (09:36 -0400)]
Quote first argument to AC_DEFUN(); from Elan Ruusamae
--HG--
branch : 1.7
Todd C. Miller [Sun, 27 Mar 2011 21:16:15 +0000 (17:16 -0400)]
Use bitwise AND instead of modulus to check for length being odd.
A newline in the middle of a string is an error unless a line
continuation character is used.
--HG--
branch : 1.7
Todd C. Miller [Sun, 27 Mar 2011 15:07:04 +0000 (11:07 -0400)]
Add missing include of config.h
--HG--
branch : 1.7
Todd C. Miller [Sun, 27 Mar 2011 15:05:22 +0000 (11:05 -0400)]
Move lexer globals initialization into init_lexer.
--HG--
branch : 1.7
Todd C. Miller [Sun, 27 Mar 2011 15:02:18 +0000 (11:02 -0400)]
Fix a potential crash when a non-regular file is present in an
includedir. Fixes bz #452
--HG--
branch : 1.7
Todd C. Miller [Sun, 27 Mar 2011 15:01:33 +0000 (11:01 -0400)]
On some Linux systems, "uname -p" contains detailed processor info
so check "uname -m" first and then "uname -p" if needed.
Recognize PLD Linux.
--HG--
branch : 1.7
Todd C. Miller [Sun, 27 Mar 2011 15:01:03 +0000 (11:01 -0400)]
Make an empty group or netgroup a syntax error.
--HG--
branch : 1.7
Todd C. Miller [Sun, 27 Mar 2011 15:00:38 +0000 (11:00 -0400)]
Allow a group ID in the User_Spec.
--HG--
branch : 1.7
Todd C. Miller [Sun, 27 Mar 2011 15:00:17 +0000 (11:00 -0400)]
Return an error for the empty string when a word is expected.
Allow an ID for per-user or per-runas Defaults.
--HG--
branch : 1.7
Todd C. Miller [Wed, 23 Mar 2011 20:04:17 +0000 (16:04 -0400)]
Fix printing "User_Alias FOO = ALL"
--HG--
branch : 1.7
Todd C. Miller [Tue, 22 Mar 2011 14:19:37 +0000 (10:19 -0400)]
Better error message about invalid -C argument
--HG--
branch : 1.7
Todd C. Miller [Tue, 22 Mar 2011 14:08:30 +0000 (10:08 -0400)]
fix typo
--HG--
branch : 1.7
Todd C. Miller [Tue, 22 Mar 2011 13:40:43 +0000 (09:40 -0400)]
Fix placement of equal size ('=') in user specification summary.
--HG--
branch : 1.7
Todd C. Miller [Mon, 21 Mar 2011 21:49:16 +0000 (17:49 -0400)]
If we match a rule anchored to the beginning of a line after parsing
a line continuation character, return an ERROR token. It would be
nicer to use REJECT instead but that substantially slows down the
lexer.
--HG--
branch : 1.7
Todd C. Miller [Mon, 21 Mar 2011 19:28:07 +0000 (15:28 -0400)]
Allow whitespace after the modifier in a Defaults entry.
E.g. "Defaults: username set_home"
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Mar 2011 21:54:47 +0000 (17:54 -0400)]
Don't set CC when cross-compiling.
Use the Sun Studio C compiler on Solaris if possible.
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Mar 2011 17:06:14 +0000 (13:06 -0400)]
Credit Matthew Thomas for the sudoers_search_filter changes.
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Mar 2011 14:24:54 +0000 (10:24 -0400)]
Update for sudo 1.7.6 beta
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Mar 2011 14:07:51 +0000 (10:07 -0400)]
Save the controlling tty process group before suspending in pty
mode. Previously, we assumed that the child pgrp == child pid
(which is usually, but not always, the case).
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Mar 2011 13:39:03 +0000 (09:39 -0400)]
Add support for sudoers_search_filter setting in ldap.conf. This
can be used to restrict the set of records returned by the LDAP
query.
--HG--
branch : 1.7
Todd C. Miller [Thu, 17 Mar 2011 22:44:22 +0000 (18:44 -0400)]
Remove the hack to disable -g in CFLAGS unless --with-devel
--HG--
branch : 1.7
Todd C. Miller [Thu, 17 Mar 2011 20:44:41 +0000 (16:44 -0400)]
The '@' character does not normally need to be quoted.
--HG--
branch : 1.7
Todd C. Miller [Thu, 17 Mar 2011 20:42:28 +0000 (16:42 -0400)]
We normaly transition from GOTDEFS to STARTDEFS on whitespace, but
if that whitespace is followed by a comma, we want to treat it as
part of a list and not transition.
--HG--
branch : 1.7
Todd C. Miller [Thu, 17 Mar 2011 20:41:11 +0000 (16:41 -0400)]
toke_util.c lives in $(srcdir) not $(devdir)
--HG--
branch : 1.7
Todd C. Miller [Thu, 17 Mar 2011 19:08:32 +0000 (15:08 -0400)]
Fix parsing of double-quoted names in Defaults and Aliases which was
broken in
c2b486b12951 .
--HG--
branch : 1.7
Todd C. Miller [Wed, 16 Mar 2011 20:10:44 +0000 (16:10 -0400)]
Document major changes for sudo 1.7.6
--HG--
branch : 1.7
Todd C. Miller [Wed, 16 Mar 2011 20:10:35 +0000 (16:10 -0400)]
Update version to 1.7.6
--HG--
branch : 1.7
Todd C. Miller [Wed, 16 Mar 2011 19:59:50 +0000 (15:59 -0400)]
Be careful not to deref user_stat if it is NULL. This cannot currently
happen in sudo but might in other programs using the parser.
--HG--
branch : 1.7
Todd C. Miller [Wed, 16 Mar 2011 17:38:48 +0000 (13:38 -0400)]
configure will not add -O2 to CFLAGS if it is already defined to
add -O2 to the CFLAGS we pass in when PIE is being used.
--HG--
branch : 1.7
Todd C. Miller [Wed, 16 Mar 2011 17:27:05 +0000 (13:27 -0400)]
Warn about the dangers of log_input and mention iolog_dir in the
log_input and log_output descriptions.
--HG--
branch : 1.7
Todd C. Miller [Wed, 16 Mar 2011 17:07:18 +0000 (13:07 -0400)]
Back out
2b81d57de4a4 and sync with git version
--HG--
branch : 1.7
Todd C. Miller [Wed, 16 Mar 2011 16:02:42 +0000 (12:02 -0400)]
Save the controlling tty process group before suspending so we can
restore it when we resume. Fixes job control problems on Linux
caused by the previous attemp to fix resuming a shell when I/O
logging not enabled.
--HG--
branch : 1.7
Todd C. Miller [Wed, 16 Mar 2011 15:55:54 +0000 (11:55 -0400)]
In handle_signals(), restart the read() on EINTR to make sure we keep up
with the signal pipe. Don't return -1 on EAGAIN, it just means we have
emptied the pipe.
--HG--
branch : 1.7
Todd C. Miller [Wed, 16 Mar 2011 14:26:19 +0000 (10:26 -0400)]
Fix printing of the remainder after a newline. Fixes "sudo -l" output
corruption that could occur in some cases.
--HG--
branch : 1.7
Todd C. Miller [Tue, 8 Mar 2011 21:10:24 +0000 (16:10 -0500)]
Fix default setting of osversion variable.
--HG--
branch : 1.7
Todd C. Miller [Mon, 7 Mar 2011 15:36:46 +0000 (10:36 -0500)]
Add --osversion flag to specify OS instead of running "pp --probeonly"
--HG--
branch : 1.7
Todd C. Miller [Mon, 7 Mar 2011 15:09:02 +0000 (10:09 -0500)]
Fix expr usage w/ GNU expr
--HG--
branch : 1.7
Todd C. Miller [Wed, 2 Mar 2011 17:29:25 +0000 (12:29 -0500)]
Don't use the beta or release candidate version as the rpm release.
--HG--
branch : 1.7
Todd C. Miller [Fri, 25 Feb 2011 21:24:53 +0000 (16:24 -0500)]
Added tag SUDO_1_7_5 for changeset
9314212577c3
--HG--
branch : 1.7
Todd C. Miller [Fri, 25 Feb 2011 19:57:25 +0000 (14:57 -0500)]
version 1.7.5
--HG--
branch : 1.7
Todd C. Miller [Mon, 21 Feb 2011 18:11:41 +0000 (13:11 -0500)]
1.7.5rc1
--HG--
branch : 1.7