Todd C. Miller [Mon, 17 May 2004 22:31:54 +0000 (22:31 +0000)]
sync
Todd C. Miller [Mon, 17 May 2004 22:31:35 +0000 (22:31 +0000)]
Remove fastboot/fasthalt (who still remembers these?) and add a minimal
sudoedit example.
Todd C. Miller [Mon, 17 May 2004 22:31:35 +0000 (22:31 +0000)]
Remove fastboot/fasthalt (who still remembers these?) and add a minimal
sudoedit example.
Todd C. Miller [Mon, 17 May 2004 22:21:15 +0000 (22:21 +0000)]
filesystem -> file system
Todd C. Miller [Mon, 17 May 2004 22:21:15 +0000 (22:21 +0000)]
filesystem -> file system
Todd C. Miller [Mon, 17 May 2004 22:21:15 +0000 (22:21 +0000)]
filesystem -> file system
Todd C. Miller [Mon, 17 May 2004 22:19:56 +0000 (22:19 +0000)]
Fix some minor typos and formatting goofs
Todd C. Miller [Mon, 17 May 2004 22:10:20 +0000 (22:10 +0000)]
regen
Todd C. Miller [Mon, 17 May 2004 21:57:44 +0000 (21:57 +0000)]
remove my email addr
Todd C. Miller [Mon, 17 May 2004 21:55:52 +0000 (21:55 +0000)]
Use @mansectform@ and @mansectsu@ everywhere
Make man page references links with L<>
Todd C. Miller [Mon, 17 May 2004 20:51:13 +0000 (20:51 +0000)]
Accept quoted globbing characters and pass them verbatim for fnmatch()
Todd C. Miller [Mon, 17 May 2004 20:50:36 +0000 (20:50 +0000)]
Document that /tmp/.odus is gone.
Todd C. Miller [Mon, 17 May 2004 20:28:54 +0000 (20:28 +0000)]
No longer use /tmp/.odus as a possible timestamp dir unless specifically
configured to do so. Instead, if no /var/run exists, use /var/adm/sudo
or /usr/adm/sudo.
Todd C. Miller [Mon, 17 May 2004 20:28:53 +0000 (20:28 +0000)]
No longer use /tmp/.odus as a possible timestamp dir unless specifically
configured to do so. Instead, if no /var/run exists, use /var/adm/sudo
or /usr/adm/sudo.
Todd C. Miller [Mon, 17 May 2004 20:28:53 +0000 (20:28 +0000)]
No longer use /tmp/.odus as a possible timestamp dir unless specifically
configured to do so. Instead, if no /var/run exists, use /var/adm/sudo
or /usr/adm/sudo.
Todd C. Miller [Mon, 17 May 2004 20:28:53 +0000 (20:28 +0000)]
No longer use /tmp/.odus as a possible timestamp dir unless specifically
configured to do so. Instead, if no /var/run exists, use /var/adm/sudo
or /usr/adm/sudo.
Todd C. Miller [Mon, 17 May 2004 20:08:46 +0000 (20:08 +0000)]
Preliminary changes to support nsr-tandem-nsk. Based on patches from
Tom Bates.
Todd C. Miller [Mon, 17 May 2004 20:08:46 +0000 (20:08 +0000)]
Preliminary changes to support nsr-tandem-nsk. Based on patches from
Tom Bates.
Todd C. Miller [Mon, 17 May 2004 20:08:46 +0000 (20:08 +0000)]
Preliminary changes to support nsr-tandem-nsk. Based on patches from
Tom Bates.
Todd C. Miller [Sun, 16 May 2004 22:47:20 +0000 (22:47 +0000)]
There was no 1.6.7p6.
Todd C. Miller [Sun, 16 May 2004 20:38:06 +0000 (20:38 +0000)]
sync
Todd C. Miller [Sun, 16 May 2004 20:36:07 +0000 (20:36 +0000)]
add missing files to DISTFILES
Todd C. Miller [Sun, 16 May 2004 20:24:28 +0000 (20:24 +0000)]
regen
Todd C. Miller [Sun, 16 May 2004 20:23:17 +0000 (20:23 +0000)]
regen
Todd C. Miller [Sun, 16 May 2004 20:20:41 +0000 (20:20 +0000)]
Fix some line wrap and update (c) year
Aaron Spangler [Wed, 28 Apr 2004 19:05:33 +0000 (19:05 +0000)]
Build Note
Aaron Spangler [Wed, 7 Apr 2004 02:03:16 +0000 (02:03 +0000)]
Fix install-dirs
Todd C. Miller [Mon, 5 Apr 2004 16:50:00 +0000 (16:50 +0000)]
regen
Todd C. Miller [Mon, 5 Apr 2004 00:27:05 +0000 (00:27 +0000)]
In Exit() when used as a signal handler, emsg is a pointer so
sizeof() is wrong so make it a #define instead. Also avoid using
a negative exit value. Found by Aaron Campbell
Todd C. Miller [Wed, 24 Mar 2004 23:23:29 +0000 (23:23 +0000)]
Remove bogus sentence about uids in a User_List. Document usernames
vs. uid parsing in a Runas_List.
Todd C. Miller [Wed, 24 Mar 2004 23:06:34 +0000 (23:06 +0000)]
If the user specified a uid with the -u flag and the uid exists in
the passwd file, set runas_user to the name, not the uid.
When comparing usernames in sudoers, if a name is really a uid (starts
with '#') compare it numerically to pw_uid.
Todd C. Miller [Mon, 22 Mar 2004 18:35:09 +0000 (18:35 +0000)]
krb5_mcc_ops should be const; Johnny C. Lam
Aaron Spangler [Sat, 28 Feb 2004 23:54:20 +0000 (23:54 +0000)]
Added start_tls support
Todd C. Miller [Sat, 14 Feb 2004 23:04:35 +0000 (23:04 +0000)]
Clean up libtool stuff for 'make distclean' and add def_data.c, def_data.h
to PARSESRCS.
Aaron Spangler [Sat, 14 Feb 2004 15:13:57 +0000 (15:13 +0000)]
Un-Fix last license munge
Todd C. Miller [Fri, 13 Feb 2004 21:39:02 +0000 (21:39 +0000)]
regen
Todd C. Miller [Fri, 13 Feb 2004 21:37:13 +0000 (21:37 +0000)]
checkpoint
Todd C. Miller [Fri, 13 Feb 2004 21:37:02 +0000 (21:37 +0000)]
regen
Todd C. Miller [Fri, 13 Feb 2004 21:36:49 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:47 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:47 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:47 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:47 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:44 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:43 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:43 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:43 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:43 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:43 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:43 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:43 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:43 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:43 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:43 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:43 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:43 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:43 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.
Aaron Spangler [Fri, 13 Feb 2004 02:08:27 +0000 (02:08 +0000)]
Merged in LDAP Support
Aaron Spangler [Fri, 13 Feb 2004 02:08:27 +0000 (02:08 +0000)]
Merged in LDAP Support
Aaron Spangler [Fri, 13 Feb 2004 02:08:27 +0000 (02:08 +0000)]
Merged in LDAP Support
Aaron Spangler [Fri, 13 Feb 2004 02:08:27 +0000 (02:08 +0000)]
Merged in LDAP Support
Todd C. Miller [Sun, 8 Feb 2004 20:53:55 +0000 (20:53 +0000)]
Only do "extern int errno" if errno is not a macro.
Todd C. Miller [Fri, 6 Feb 2004 23:08:04 +0000 (23:08 +0000)]
setreuid(0, 0) fails on QNX if the euid is not already 0 so set the
euid first, then just call setuid(0) to set the real uid too.
Todd C. Miller [Fri, 6 Feb 2004 19:52:17 +0000 (19:52 +0000)]
Use setresuid() and setreuid() for PERM_RUNAS when appropriate instead
of seteuid() which may not exist.
Todd C. Miller [Wed, 4 Feb 2004 19:58:25 +0000 (19:58 +0000)]
2004
Todd C. Miller [Wed, 4 Feb 2004 04:38:56 +0000 (04:38 +0000)]
Add --with-pc-insults configure option
Todd C. Miller [Wed, 4 Feb 2004 04:32:18 +0000 (04:32 +0000)]
Prefer VISUAL over EDITOR like old vipw did.
Todd C. Miller [Sun, 1 Feb 2004 20:45:08 +0000 (20:45 +0000)]
regen
Todd C. Miller [Sun, 1 Feb 2004 20:44:44 +0000 (20:44 +0000)]
Add a note that noexec is not a cure-all.
Todd C. Miller [Sun, 1 Feb 2004 20:20:55 +0000 (20:20 +0000)]
Mention that disabling "root_sudo" is pretty pointless.
Todd C. Miller [Sun, 1 Feb 2004 20:20:30 +0000 (20:20 +0000)]
Substitute for root_sudo in sudoers.pod
Todd C. Miller [Sun, 1 Feb 2004 20:03:22 +0000 (20:03 +0000)]
Add sudoedit to the NAME section
Todd C. Miller [Sun, 1 Feb 2004 20:00:32 +0000 (20:00 +0000)]
Document that fact that setting ignore_dot in sudoers has no effect
due to the fact that find_path() is called *before* sudoers is read.
Todd C. Miller [Fri, 30 Jan 2004 00:50:41 +0000 (00:50 +0000)]
Do not require _PATH_USRTMP to be set.
Todd C. Miller [Fri, 30 Jan 2004 00:42:58 +0000 (00:42 +0000)]
sync
Todd C. Miller [Fri, 30 Jan 2004 00:42:29 +0000 (00:42 +0000)]
regen
Todd C. Miller [Fri, 30 Jan 2004 00:41:43 +0000 (00:41 +0000)]
Clarify that when sudo is run by root with the SUDO_USER variable set,
the sudoers lookup happens for root and not the SUDO_USER user.
Todd C. Miller [Thu, 29 Jan 2004 22:33:58 +0000 (22:33 +0000)]
Use the SET, CLR and ISSET macros.
Todd C. Miller [Thu, 29 Jan 2004 22:33:54 +0000 (22:33 +0000)]
Use the SET, CLR and ISSET macros.
Todd C. Miller [Thu, 29 Jan 2004 22:33:54 +0000 (22:33 +0000)]
Use the SET, CLR and ISSET macros.
Todd C. Miller [Thu, 29 Jan 2004 21:22:55 +0000 (21:22 +0000)]
MAIN was replaced with _SUDO_MAIN some time ago.
Todd C. Miller [Thu, 29 Jan 2004 21:15:27 +0000 (21:15 +0000)]
Don't look at prev_user until after we've parsed sudoers and done the
password check. That way, if sudo/sudoedit is run from a root process
that was invoked by sudo, we check sudoers for root, not the previous
user. This makes sudoedit much more useful and means that for the
sudo case, we get correct logging on who actually ran the command.
Todd C. Miller [Fri, 23 Jan 2004 00:22:28 +0000 (00:22 +0000)]
Add a comment describing why we need to be notified about our child
stopping.
Todd C. Miller [Thu, 22 Jan 2004 21:06:58 +0000 (21:06 +0000)]
Update the noexec variable descriptions
Todd C. Miller [Thu, 22 Jan 2004 19:18:50 +0000 (19:18 +0000)]
noexec now replaces more than just execve()
Todd C. Miller [Thu, 22 Jan 2004 17:14:18 +0000 (17:14 +0000)]
Alas, all the world does not go through execve(2). Many systems
still have an execv(2) system call, Linux 2.6 provides fexecve(2)
and it is not uncommon for libc to have underscore ('_') versions
of the functions to be used internally by the library. Instead of
stubbing all these out by hand, define a macro and let it do the
work. Extra exec functions pointed out by Reznic Valery.
Todd C. Miller [Thu, 22 Jan 2004 02:57:01 +0000 (02:57 +0000)]
Fix suspending the editor in -e mode. Because we do a fork() first
we need to be notified when the child has been stopped and then send
that same signal to ourself so the shell can do its job control thing.
Todd C. Miller [Thu, 22 Jan 2004 02:44:13 +0000 (02:44 +0000)]
Use WIFEXITED and WEXITSTATUS macros. If there are systems out there
that want to run sudo that still don't support these we can try to
deal with that later.
Todd C. Miller [Thu, 22 Jan 2004 01:03:16 +0000 (01:03 +0000)]
regen
Todd C. Miller [Thu, 22 Jan 2004 01:00:54 +0000 (01:00 +0000)]
Document sudo -e / sudoedit
Todd C. Miller [Thu, 22 Jan 2004 00:08:58 +0000 (00:08 +0000)]
fix typo
Todd C. Miller [Thu, 22 Jan 2004 00:02:36 +0000 (00:02 +0000)]
Add SET/CLR/ISSET
Todd C. Miller [Wed, 21 Jan 2004 23:55:39 +0000 (23:55 +0000)]
Allow non-exclusive flags when invoked as sudoedit.
Pretty print the long usage() line to not wrap (assumes 80 char display)
Todd C. Miller [Wed, 21 Jan 2004 23:01:35 +0000 (23:01 +0000)]
If sudo is invoked as "sudoedit" the -e flag is implied and no other
flags are permitted.
Todd C. Miller [Wed, 21 Jan 2004 23:00:43 +0000 (23:00 +0000)]
Add a new flag, -e, that makes it possible to give users the ability
to edit files with the editor of their choice as the invoking user,
not the runas user. Temporary files are used for the actual edit
and the temp file is copied over the original after the editor is done.
Todd C. Miller [Wed, 21 Jan 2004 22:25:10 +0000 (22:25 +0000)]
Add a new flag, -e, that makes it possible to give users the ability
to edit files with the editor of their choice as the invoking user,
not the runas user. Temporary files are used for the actual edit
and the temp file is copied over the original after the editor is done.
Todd C. Miller [Wed, 21 Jan 2004 22:06:02 +0000 (22:06 +0000)]
If real uid == 0 and the SUDO_USER environment variables is set,
use that to determine the invoking user's true identity. That way
the proper info gets logged by someone who has done "sudo su" but
still uses sudo to as root. We can't do this for non-root users
since that would open up a security hole, though perhaps it would
be acceptable to use getlogin(2) on OSes where this a system call
(and doesn't just look in the utmp file).
Todd C. Miller [Wed, 21 Jan 2004 21:58:24 +0000 (21:58 +0000)]
Add _PATH_TMP, _PATH_VARTMP and _PATH_USRTMP
Todd C. Miller [Wed, 21 Jan 2004 21:57:59 +0000 (21:57 +0000)]
Add check for fchown(2)
Todd C. Miller [Tue, 20 Jan 2004 19:22:46 +0000 (19:22 +0000)]
Back out portions of the -i commit that set NewArgv[0] in set_runaspw.
It is far to late to set NewArgv[0] there and will have no effect
anyway as cmnd and safe_cmnd have already been set.