]>
granicus.if.org Git - sudo/log
Todd C. Miller [Mon, 19 Jul 2010 16:39:41 +0000 (12:39 -0400)]
Check return value of setdefs() but don't stop setting defaults if
we hit an unknown one.
--HG--
branch : 1.7
Todd C. Miller [Mon, 19 Jul 2010 16:37:39 +0000 (12:37 -0400)]
Fix check for dup2() return value.
--HG--
branch : 1.7
Todd C. Miller [Mon, 19 Jul 2010 16:28:14 +0000 (12:28 -0400)]
Treat an unknown defaults entry as a parse error.
--HG--
branch : 1.7
Todd C. Miller [Mon, 19 Jul 2010 16:12:03 +0000 (12:12 -0400)]
Check KEPT_MAIL not DID_MAIL when determining whether to set MAIL
in -i and env_reset mode.
--HG--
branch : 1.7
Todd C. Miller [Mon, 19 Jul 2010 15:15:32 +0000 (11:15 -0400)]
Add PYTHONUSERBASE to initial_badenv_table
--HG--
branch : 1.7
Todd C. Miller [Mon, 19 Jul 2010 15:08:09 +0000 (11:08 -0400)]
If env_reset is enabled, set the MAIL environment variable based
on the target user unless MAIL is explicitly preserved in sudoers.
--HG--
branch : 1.7
Todd C. Miller [Sat, 17 Jul 2010 22:29:29 +0000 (18:29 -0400)]
decode debian code names
--HG--
branch : 1.7
Todd C. Miller [Sat, 17 Jul 2010 17:27:26 +0000 (13:27 -0400)]
fix typo
--HG--
branch : 1.7
Todd C. Miller [Fri, 16 Jul 2010 18:36:10 +0000 (14:36 -0400)]
Add entry about SuSE bash script fix.
--HG--
branch : 1.7
Todd C. Miller [Fri, 16 Jul 2010 17:59:44 +0000 (13:59 -0400)]
Restore RLIMIT_NPROC after the uid switch if it appears that runas_setup()
did not do it for us. Fixes a bash script problem on SuSE with RLIMIT_NPROC
set to RLIM_INFINITY.
--HG--
branch : 1.7
Todd C. Miller [Fri, 16 Jul 2010 02:18:27 +0000 (22:18 -0400)]
Restore the dot removal in the os version reported by polypkg.
Adapt mkpkg and sudo.pp to the change.
--HG--
branch : 1.7
Todd C. Miller [Fri, 16 Jul 2010 12:26:29 +0000 (08:26 -0400)]
Mention polypkg
--HG--
branch : 1.7
Todd C. Miller [Fri, 16 Jul 2010 12:22:49 +0000 (08:22 -0400)]
Update for sudo 1.7.4
--HG--
branch : 1.7
Todd C. Miller [Fri, 16 Jul 2010 11:09:49 +0000 (07:09 -0400)]
document --with-pam-login
--HG--
branch : 1.7
Todd C. Miller [Fri, 16 Jul 2010 09:57:18 +0000 (05:57 -0400)]
The tag is NOSETENV, not UNSETENV. From Petr Uzel.
--HG--
branch : 1.7
Todd C. Miller [Thu, 15 Jul 2010 20:52:03 +0000 (16:52 -0400)]
Include flavor in solaris package name
--HG--
branch : 1.7
Todd C. Miller [Thu, 15 Jul 2010 20:36:02 +0000 (16:36 -0400)]
Older shells don't support IFS= so set explictly to space, tab, newline.
--HG--
branch : 1.7
Todd C. Miller [Thu, 15 Jul 2010 19:44:47 +0000 (15:44 -0400)]
Use '=' not '==' in test
--HG--
branch : 1.7
Todd C. Miller [Thu, 15 Jul 2010 19:22:57 +0000 (15:22 -0400)]
Fix typo that prevented debian from matching
--HG--
branch : 1.7
Todd C. Miller [Thu, 15 Jul 2010 19:20:13 +0000 (15:20 -0400)]
Add missing prefix setting for debian
--HG--
branch : 1.7
Todd C. Miller [Thu, 15 Jul 2010 18:58:00 +0000 (14:58 -0400)]
Use tab indents to reduce the chance of problem with <<-
Uncomment some env_keep lines for RHEL, SLES and Debian to more
closely match the vendor sudoers files.
--HG--
branch : 1.7
Todd C. Miller [Thu, 15 Jul 2010 17:06:12 +0000 (13:06 -0400)]
Fix indentation
Fix the debian %set section, pp does not set pp_deb_distro
Uncomment %sudo line in sudoers for debian
Add pam.d to %files for debian
Remove the /etc/sudo-ldap.conf symlink on debian for ldap flavor
--HG--
branch : 1.7
Todd C. Miller [Thu, 15 Jul 2010 16:14:51 +0000 (12:14 -0400)]
Add commented out env_keep entries, sample Aliases and a %sudo line
for debian.
--HG--
branch : 1.7
Todd C. Miller [Thu, 15 Jul 2010 13:50:40 +0000 (09:50 -0400)]
Remove check for egrep; configure has its own
--HG--
branch : 1.7
Todd C. Miller [Thu, 15 Jul 2010 13:50:07 +0000 (09:50 -0400)]
Use enable_zlib instead of enableval for consistency
--HG--
branch : 1.7
Todd C. Miller [Wed, 14 Jul 2010 20:03:23 +0000 (16:03 -0400)]
Enable zlib for linux distros
--HG--
branch : 1.7
Todd C. Miller [Wed, 14 Jul 2010 19:55:59 +0000 (15:55 -0400)]
Add ldap flavor to default build
--HG--
branch : 1.7
Todd C. Miller [Wed, 14 Jul 2010 19:53:32 +0000 (15:53 -0400)]
Simplify rpm linux distro settings
--HG--
branch : 1.7
Todd C. Miller [Wed, 14 Jul 2010 19:00:52 +0000 (15:00 -0400)]
Move time stamp files from /var/run/sudo to /var/{db,lib,adm}/sudo.
--HG--
branch : 1.7
Todd C. Miller [Wed, 14 Jul 2010 16:37:00 +0000 (12:37 -0400)]
Add ldap "flavor" for debian, controlled by the SUDO_FLAVOR environment
variable.
--HG--
branch : 1.7
Todd C. Miller [Wed, 14 Jul 2010 14:56:52 +0000 (10:56 -0400)]
Create sudo group on debian
--HG--
branch : 1.7
Todd C. Miller [Wed, 14 Jul 2010 13:29:32 +0000 (09:29 -0400)]
Add debian 4/5/6 and use the dot when doing version matches
--HG--
branch : 1.7
Todd C. Miller [Wed, 14 Jul 2010 13:09:23 +0000 (09:09 -0400)]
Remove spurious "and"; from debian
--HG--
branch : 1.7
Todd C. Miller [Wed, 14 Jul 2010 13:06:37 +0000 (09:06 -0400)]
Use a loop when searching for mv, sendmail and sh
--HG--
branch : 1.7
Todd C. Miller [Wed, 14 Jul 2010 12:56:06 +0000 (08:56 -0400)]
Substitute the value of EDITOR into the sudoers and visudo manuals.
--HG--
branch : 1.7
Todd C. Miller [Tue, 13 Jul 2010 21:52:09 +0000 (17:52 -0400)]
Initial debian 4.0 support
--HG--
branch : 1.7
Todd C. Miller [Tue, 13 Jul 2010 14:17:23 +0000 (10:17 -0400)]
Some platforms need -fPIE instead of -fpie
--HG--
branch : 1.7
Todd C. Miller [Tue, 13 Jul 2010 13:54:59 +0000 (09:54 -0400)]
Add packaging bits to DISTFILES
--HG--
branch : 1.7
Todd C. Miller [Tue, 13 Jul 2010 12:56:08 +0000 (08:56 -0400)]
Only set PAM_RHOST for Solaris, where it is needed to avoid a bug.
On Linux it causes a DNS lookup via libaudit.
--HG--
branch : 1.7
Todd C. Miller [Tue, 13 Jul 2010 12:41:07 +0000 (08:41 -0400)]
We now use pp to generate HP-UX packages
--HG--
branch : 1.7
Todd C. Miller [Mon, 12 Jul 2010 21:55:27 +0000 (17:55 -0400)]
Fix indentation
--HG--
branch : 1.7
Todd C. Miller [Mon, 12 Jul 2010 21:43:26 +0000 (17:43 -0400)]
isntall-man -> install-doc
--HG--
branch : 1.7
Todd C. Miller [Mon, 12 Jul 2010 21:15:43 +0000 (17:15 -0400)]
Bump version to 1.7.4
--HG--
branch : 1.7
Todd C. Miller [Mon, 12 Jul 2010 21:12:02 +0000 (17:12 -0400)]
Remove remaining bits of the old binary package
--HG--
branch : 1.7
Todd C. Miller [Mon, 12 Jul 2010 21:10:07 +0000 (17:10 -0400)]
Use http://rc.quest.com/topics/polypkg/ for packaging
--HG--
branch : 1.7
Todd C. Miller [Mon, 12 Jul 2010 21:07:36 +0000 (17:07 -0400)]
Use http://rc.quest.com/topics/polypkg/ for packaging
--HG--
branch : 1.7
Todd C. Miller [Mon, 12 Jul 2010 21:04:47 +0000 (17:04 -0400)]
Just ignore the -c option, it is the default
Add support for -d option
--HG--
branch : 1.7
Todd C. Miller [Mon, 12 Jul 2010 19:49:08 +0000 (15:49 -0400)]
Use _PATH_STDPATH instead of _PATH_DEFPATH
--HG--
branch : 1.7
Todd C. Miller [Mon, 12 Jul 2010 14:38:59 +0000 (10:38 -0400)]
Do not strip binaries.
--HG--
branch : 1.7
Todd C. Miller [Mon, 12 Jul 2010 14:38:07 +0000 (10:38 -0400)]
Add --insults=disabled configure option to allow people to build
in insult support but have the insults disabled unless explicitly
enabled in sudoers.
--HG--
branch : 1.7
Todd C. Miller [Sat, 10 Jul 2010 21:12:20 +0000 (17:12 -0400)]
Fix K&R compilation
--HG--
branch : 1.7
Todd C. Miller [Fri, 9 Jul 2010 21:08:58 +0000 (17:08 -0400)]
Add support for a sudo-i pam.d file to be used for "sudo -i".
Adapted from a RedHat patch.
--HG--
branch : 1.7
Todd C. Miller [Fri, 9 Jul 2010 15:06:21 +0000 (11:06 -0400)]
Fix installation of sudo_noexec.so
--HG--
branch : 1.7
Todd C. Miller [Fri, 9 Jul 2010 13:49:33 +0000 (09:49 -0400)]
Use mkstemps() instead of mkstemp() in sudoedit. This allows sudoedit
to preserve the file extension (if any) which may be used by the editor
(like emacs) to choose the editing mode.
--HG--
branch : 1.7
Todd C. Miller [Thu, 8 Jul 2010 13:00:13 +0000 (09:00 -0400)]
TLS_CACERT is now an alias for TLS_CACERTFILE. OpenLDAP uses TLS_CACERT,
not TLS_CACERTFILE in its ldap.conf. Other LDAP client code, such as
nss_ldap, uses TLS_CACERTFILE. Also document why you should avoid
disabling TLS_CHECKPEER is possible.
--HG--
branch : 1.7
Todd C. Miller [Wed, 7 Jul 2010 18:33:06 +0000 (14:33 -0400)]
Add suport for negated user/host/command lists in a Defaults entry.
E.g. Defaults:!baduser noexec
--HG--
branch : 1.7
Todd C. Miller [Thu, 1 Jul 2010 17:32:59 +0000 (13:32 -0400)]
fix typo.
--HG--
branch : 1.7
Todd C. Miller [Tue, 29 Jun 2010 22:29:19 +0000 (18:29 -0400)]
Added tag SUDO_1_7_3 for changeset
72fd1f510a08
--HG--
branch : 1.7
Todd C. Miller [Tue, 29 Jun 2010 21:55:55 +0000 (17:55 -0400)]
Sudo 1.7.3 GA
--HG--
branch : 1.7
Todd C. Miller [Tue, 29 Jun 2010 16:45:11 +0000 (12:45 -0400)]
Include strings.h even if string.h exists since they may define
different things. Fixes warnings on AIX and others.
--HG--
branch : 1.7
Todd C. Miller [Tue, 29 Jun 2010 13:26:21 +0000 (09:26 -0400)]
Do not rely on env.env_len when unsetting a variable, just use the
NULL terminator.
--HG--
branch : 1.7
Todd C. Miller [Tue, 29 Jun 2010 13:09:20 +0000 (09:09 -0400)]
In unsetenv() check for NULL or empty name as per POSIX 1003.1-2008
--HG--
branch : 1.7
Todd C. Miller [Mon, 28 Jun 2010 13:08:34 +0000 (09:08 -0400)]
Mention that multiple URI lines are merged into a single one.
--HG--
branch : 1.7
Todd C. Miller [Mon, 28 Jun 2010 13:08:10 +0000 (09:08 -0400)]
Document AIX fixes
--HG--
branch : 1.7
Todd C. Miller [Sat, 26 Jun 2010 17:09:05 +0000 (13:09 -0400)]
For env_init() just use environ not the envp from main().
--HG--
branch : 1.7
Todd C. Miller [Fri, 25 Jun 2010 17:50:15 +0000 (13:50 -0400)]
Update version to 1.7.3rc1
--HG--
branch : 1.7
Todd C. Miller [Fri, 25 Jun 2010 17:44:45 +0000 (13:44 -0400)]
fqdn issue is resolved
--HG--
branch : 1.7
Todd C. Miller [Fri, 25 Jun 2010 17:42:50 +0000 (13:42 -0400)]
In unsetenv(), assign ep in the for loop instead of doing it earlier.
This version of the code does not change env.envp in between when
ep is assigned and when it is used but older versions (e.g. 1.7.2) do.
--HG--
branch : 1.7
Todd C. Miller [Fri, 25 Jun 2010 17:17:59 +0000 (13:17 -0400)]
Use S_REGISTRY instead of S_AUTHSYSTEM as the argument to getuserattr()
when fetching the administrative domain to be used by setauthdb().
This was suggested by AIX support and is consistent with what OpenSSH does.
--HG--
branch : 1.7
Todd C. Miller [Fri, 25 Jun 2010 13:58:59 +0000 (09:58 -0400)]
Use warningx() instead of log_error() since the latter is not available
to visudo or testsudoers. This does mean that they don't end up in syslog.
--HG--
branch : 1.7
Todd C. Miller [Fri, 25 Jun 2010 13:57:58 +0000 (09:57 -0400)]
Defer call to sudo_nonunix_groupcheck_cleanup() until after we have
closed the sudoers sources. From Quest sudo.
--HG--
branch : 1.7
Todd C. Miller [Fri, 25 Jun 2010 13:57:29 +0000 (09:57 -0400)]
Ignore case when matching user/group names in the cache. From Quest sudo.
--HG--
branch : 1.7
Todd C. Miller [Thu, 24 Jun 2010 18:34:53 +0000 (14:34 -0400)]
Add check for setkeycreatecon() when --with-selinux is specified.
--HG--
branch : 1.7
Todd C. Miller [Thu, 24 Jun 2010 18:16:45 +0000 (14:16 -0400)]
Bump version to 1.7.3b5
Error out if libaudit.h is missing or ununable when --with-linux-audit
was specified
--HG--
branch : 1.7
Todd C. Miller [Thu, 24 Jun 2010 17:22:51 +0000 (13:22 -0400)]
K&R function declaration for aix_setauthdb()
--HG--
branch : 1.7
Todd C. Miller [Thu, 24 Jun 2010 11:42:29 +0000 (07:42 -0400)]
If env_init() was called implicitly via getenv(), setenv() or putenv()
just use the specified envp instead of mallocing a new copy. This
prevents an infinite loop on OpenBSD which calls getenv() from malloc()
to get MALLOC_OPTIONS.
--HG--
branch : 1.7
Todd C. Miller [Thu, 24 Jun 2010 11:39:34 +0000 (07:39 -0400)]
Add support for multiple URI lines by joining the contents and passing
the result to ldap_initialize.
--HG--
branch : 1.7
Todd C. Miller [Wed, 23 Jun 2010 22:56:44 +0000 (18:56 -0400)]
Bracket initgroups with calls to aix_setauthdb() and aix_restoreauthdb()
--HG--
branch : 1.7
Todd C. Miller [Wed, 23 Jun 2010 15:40:20 +0000 (11:40 -0400)]
Include compat.h before alloc.h to get __P
--HG--
branch : 1.7
Todd C. Miller [Wed, 23 Jun 2010 15:08:54 +0000 (11:08 -0400)]
Include usersec.h for authenticate() prototype
--HG--
branch : 1.7
Todd C. Miller [Wed, 23 Jun 2010 15:07:42 +0000 (11:07 -0400)]
Add missing includes
Add missing trailing NUL in userinfo string
--HG--
branch : 1.7
Todd C. Miller [Tue, 22 Jun 2010 17:39:14 +0000 (13:39 -0400)]
Mention when LDAP was incorporated.
--HG--
branch : 1.7
Todd C. Miller [Mon, 21 Jun 2010 20:20:10 +0000 (16:20 -0400)]
Define _LINUX_SOURCE_COMPAT on AIX for strsignal() prototype, it
is not covered by _ALL_SOURCE.
--HG--
branch : 1.7
Todd C. Miller [Mon, 21 Jun 2010 20:19:41 +0000 (16:19 -0400)]
Include usersec.h on AIX to get IDtouser() prototype.
--HG--
branch : 1.7
Todd C. Miller [Mon, 21 Jun 2010 20:18:46 +0000 (16:18 -0400)]
Define _LINUX_SOURCE_COMPAT on AIX for strsignal() prototype, it
is not covered by _ALL_SOURCE.
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 22:45:22 +0000 (18:45 -0400)]
Add a cast to quiet a compiler warning.
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 22:44:05 +0000 (18:44 -0400)]
Use memset() instead of zero_bytes() since we don't include sudo.h
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 22:41:54 +0000 (18:41 -0400)]
getline.o is already in LIB_OBJS, do not need it in COMMON_OBJS
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 22:38:28 +0000 (18:38 -0400)]
Quiet a compiler warning.
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 21:47:17 +0000 (17:47 -0400)]
Call set_fqdn() after sudoers has parsed instead of inline as a callback.
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 21:23:37 +0000 (17:23 -0400)]
Do not call set_fqdn() until sudoers parses (where is gets run as a callback).
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 21:21:10 +0000 (17:21 -0400)]
Do not call set_fqdn() until sudoers parses (where is gets run as a callback).
Otherwise, if sudo is built --with-fqdn the fqdn will be set even if
!fqdn is set in sudoers.
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 19:51:26 +0000 (15:51 -0400)]
Bump version to 1.7.3b4
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 19:43:00 +0000 (15:43 -0400)]
mention the change in tty ticket behavior when there is no tty
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 19:37:27 +0000 (15:37 -0400)]
remove done items
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 19:37:00 +0000 (15:37 -0400)]
Remove comment; NAME in usrinfo should be user name.
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 14:08:01 +0000 (08:08 -0600)]
Do not update tty ticket if there is no tty.
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 14:05:44 +0000 (10:05 -0400)]
No longer need to use -- with the -s flag
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 14:04:52 +0000 (10:04 -0400)]
Add missing $(srcdir) to sudo.man.in target
--HG--
branch : 1.7
Todd C. Miller [Fri, 18 Jun 2010 13:53:46 +0000 (09:53 -0400)]
Do not rely on BSD make's $>
--HG--
branch : 1.7