]> granicus.if.org Git - sudo/log
sudo
21 years agoMore to a less restrictive, ISC-style license.
Todd C. Miller [Fri, 13 Feb 2004 21:36:49 +0000 (21:36 +0000)]
More to a less restrictive, ISC-style license.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMore 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.

21 years agoMerged in LDAP Support
Aaron Spangler [Fri, 13 Feb 2004 02:08:27 +0000 (02:08 +0000)]
Merged in LDAP Support

21 years agoMerged in LDAP Support
Aaron Spangler [Fri, 13 Feb 2004 02:08:27 +0000 (02:08 +0000)]
Merged in LDAP Support

21 years agoMerged in LDAP Support
Aaron Spangler [Fri, 13 Feb 2004 02:08:27 +0000 (02:08 +0000)]
Merged in LDAP Support

21 years agoMerged in LDAP Support
Aaron Spangler [Fri, 13 Feb 2004 02:08:27 +0000 (02:08 +0000)]
Merged in LDAP Support

21 years agoOnly do "extern int errno" if errno is not a macro.
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.

21 years agosetreuid(0, 0) fails on QNX if the euid is not already 0 so set the
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.

21 years agoUse setresuid() and setreuid() for PERM_RUNAS when appropriate instead
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.

21 years ago2004
Todd C. Miller [Wed, 4 Feb 2004 19:58:25 +0000 (19:58 +0000)]
2004

21 years agoAdd --with-pc-insults configure option
Todd C. Miller [Wed, 4 Feb 2004 04:38:56 +0000 (04:38 +0000)]
Add --with-pc-insults configure option

21 years agoPrefer VISUAL over EDITOR like old vipw did.
Todd C. Miller [Wed, 4 Feb 2004 04:32:18 +0000 (04:32 +0000)]
Prefer VISUAL over EDITOR like old vipw did.

21 years agoregen
Todd C. Miller [Sun, 1 Feb 2004 20:45:08 +0000 (20:45 +0000)]
regen

21 years agoAdd a note that noexec is not a cure-all.
Todd C. Miller [Sun, 1 Feb 2004 20:44:44 +0000 (20:44 +0000)]
Add a note that noexec is not a cure-all.

21 years agoMention that disabling "root_sudo" is pretty pointless.
Todd C. Miller [Sun, 1 Feb 2004 20:20:55 +0000 (20:20 +0000)]
Mention that disabling "root_sudo" is pretty pointless.

21 years agoSubstitute for root_sudo in sudoers.pod
Todd C. Miller [Sun, 1 Feb 2004 20:20:30 +0000 (20:20 +0000)]
Substitute for root_sudo in sudoers.pod

21 years agoAdd sudoedit to the NAME section
Todd C. Miller [Sun, 1 Feb 2004 20:03:22 +0000 (20:03 +0000)]
Add sudoedit to the NAME section

21 years agoDocument that fact that setting ignore_dot in sudoers has no effect
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.

21 years agoDo not require _PATH_USRTMP to be set.
Todd C. Miller [Fri, 30 Jan 2004 00:50:41 +0000 (00:50 +0000)]
Do not require _PATH_USRTMP to be set.

21 years agosync
Todd C. Miller [Fri, 30 Jan 2004 00:42:58 +0000 (00:42 +0000)]
sync

21 years agoregen
Todd C. Miller [Fri, 30 Jan 2004 00:42:29 +0000 (00:42 +0000)]
regen

21 years agoClarify that when sudo is run by root with the SUDO_USER variable set,
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.

21 years agoUse the SET, CLR and ISSET macros.
Todd C. Miller [Thu, 29 Jan 2004 22:33:58 +0000 (22:33 +0000)]
Use the SET, CLR and ISSET macros.

21 years agoUse 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.

21 years agoUse 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.

21 years agoMAIN was replaced with _SUDO_MAIN some time ago.
Todd C. Miller [Thu, 29 Jan 2004 21:22:55 +0000 (21:22 +0000)]
MAIN was replaced with _SUDO_MAIN some time ago.

21 years agoDon't look at prev_user until after we've parsed sudoers and done the
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.

21 years agoAdd a comment describing why we need to be notified about our child
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.

21 years agoUpdate the noexec variable descriptions
Todd C. Miller [Thu, 22 Jan 2004 21:06:58 +0000 (21:06 +0000)]
Update the noexec variable descriptions

21 years agonoexec now replaces more than just execve()
Todd C. Miller [Thu, 22 Jan 2004 19:18:50 +0000 (19:18 +0000)]
noexec now replaces more than just execve()

21 years agoAlas, all the world does not go through execve(2). Many systems
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.

21 years agoFix suspending the editor in -e mode. Because we do a fork() first
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.

21 years agoUse WIFEXITED and WEXITSTATUS macros. If there are systems out there
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.

21 years agoregen
Todd C. Miller [Thu, 22 Jan 2004 01:03:16 +0000 (01:03 +0000)]
regen

21 years agoDocument sudo -e / sudoedit
Todd C. Miller [Thu, 22 Jan 2004 01:00:54 +0000 (01:00 +0000)]
Document sudo -e / sudoedit

21 years agofix typo
Todd C. Miller [Thu, 22 Jan 2004 00:08:58 +0000 (00:08 +0000)]
fix typo

21 years agoAdd SET/CLR/ISSET
Todd C. Miller [Thu, 22 Jan 2004 00:02:36 +0000 (00:02 +0000)]
Add SET/CLR/ISSET

21 years agoAllow non-exclusive flags when invoked as sudoedit.
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)

21 years agoIf sudo is invoked as "sudoedit" the -e flag is implied and no other
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.

21 years agoAdd a new flag, -e, that makes it possible to give users the ability
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.

21 years agoAdd a new flag, -e, that makes it possible to give users the ability
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.

21 years agoIf real uid == 0 and the SUDO_USER environment variables is set,
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).

21 years agoAdd _PATH_TMP, _PATH_VARTMP and _PATH_USRTMP
Todd C. Miller [Wed, 21 Jan 2004 21:58:24 +0000 (21:58 +0000)]
Add _PATH_TMP, _PATH_VARTMP and _PATH_USRTMP

21 years agoAdd check for fchown(2)
Todd C. Miller [Wed, 21 Jan 2004 21:57:59 +0000 (21:57 +0000)]
Add check for fchown(2)

21 years agoBack out portions of the -i commit that set NewArgv[0] in set_runaspw.
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.

21 years agoPrefer VISUAL over EDITOR like old vipw did.
Todd C. Miller [Tue, 20 Jan 2004 19:18:44 +0000 (19:18 +0000)]
Prefer VISUAL over EDITOR like old vipw did.

21 years agoIn -i mode always set new environment based on the runas user's passwd entry.
Todd C. Miller [Mon, 19 Jan 2004 01:17:00 +0000 (01:17 +0000)]
In -i mode always set new environment based on the runas user's passwd entry.

21 years agoDocument the new -i flag and sync SYNOPSIS section with usage() in sudo.c.
Todd C. Miller [Sun, 18 Jan 2004 22:56:27 +0000 (22:56 +0000)]
Document the new -i flag and sync SYNOPSIS section with usage() in sudo.c.
Also sort the flags in the OPTIONS section.

21 years agoo Add -i that acts similar to "su -", based on patches from David J. MacKenzie
Todd C. Miller [Sun, 18 Jan 2004 22:55:32 +0000 (22:55 +0000)]
o Add -i that acts similar to "su -", based on patches from David J. MacKenzie
o Sort the flags in the usage message

21 years agoAdd a missing @runas_default@ substitution.
Todd C. Miller [Sun, 18 Jan 2004 22:22:01 +0000 (22:22 +0000)]
Add a missing @runas_default@ substitution.

21 years agoChange euid to runas user before calling find_path(). Unfortunately,
Todd C. Miller [Sat, 17 Jan 2004 21:34:05 +0000 (21:34 +0000)]
Change euid to runas user before calling find_path().  Unfortunately,
though runas_user can be modified in sudoers we haven't parsed sudoers yet.

21 years agoAdd missing defintion of Parameter_List and use single pipes in the
Todd C. Miller [Sat, 17 Jan 2004 21:25:40 +0000 (21:25 +0000)]
Add missing defintion of Parameter_List and use single pipes in the
Defaults EBNF definition.

21 years agoFix a bug when set_runaspw() is used as a callback. We don't want to
Todd C. Miller [Sat, 17 Jan 2004 18:49:59 +0000 (18:49 +0000)]
Fix a bug when set_runaspw() is used as a callback.  We don't want to
reset the contents of runas_pw if the user specified a user via the -u flag.

Avoid unnecessary passwd lookups in set_authpw().  In most cases we already
have the info in runas_pw.

21 years agoAdd Stan Lee / Uncle Ben quote to the lecture from RedHat
Todd C. Miller [Fri, 16 Jan 2004 23:16:24 +0000 (23:16 +0000)]
Add Stan Lee / Uncle Ben quote to the lecture from RedHat

21 years agoUpdate sudo_getepw() proto and add one for set_runaspw()
Todd C. Miller [Fri, 16 Jan 2004 23:12:03 +0000 (23:12 +0000)]
Update sudo_getepw() proto and add one for set_runaspw()

21 years agoIf we can't stat the command as root, try as the runas user instead.
Todd C. Miller [Fri, 16 Jan 2004 23:10:13 +0000 (23:10 +0000)]
If we can't stat the command as root, try as the runas user instead.

21 years agoAdd stub set_runaspw() function
Todd C. Miller [Fri, 16 Jan 2004 23:09:34 +0000 (23:09 +0000)]
Add stub set_runaspw() function

21 years agoAdd set_runaspw() function to fill in runas_pw. This will be used
Todd C. Miller [Fri, 16 Jan 2004 23:09:20 +0000 (23:09 +0000)]
Add set_runaspw() function to fill in runas_pw.  This will be used
as a callback to update runas_pw when the runas user changes.

21 years agoPERM_RUNAS -> PERM_FULL_RUNAS
Todd C. Miller [Fri, 16 Jan 2004 23:07:03 +0000 (23:07 +0000)]
PERM_RUNAS -> PERM_FULL_RUNAS

21 years agoRename PERM_RUNAS -> PERM_FULL_RUNAS and add a PERM_RUNAS that just
Todd C. Miller [Fri, 16 Jan 2004 23:05:47 +0000 (23:05 +0000)]
Rename PERM_RUNAS -> PERM_FULL_RUNAS and add a PERM_RUNAS that just
changes the euid.

21 years agoMake sudo_pwdup() act like OpenBSD pw_dup() and allocate memory in
Todd C. Miller [Fri, 16 Jan 2004 23:04:07 +0000 (23:04 +0000)]
Make sudo_pwdup() act like OpenBSD pw_dup() and allocate memory in
one chunk for easy free()ing.  Also change it from static to extern.

21 years agoAdd callback support
Todd C. Miller [Fri, 16 Jan 2004 23:03:02 +0000 (23:03 +0000)]
Add callback support

21 years agoAdd a callback field and use it for runas_default
Todd C. Miller [Fri, 16 Jan 2004 23:02:18 +0000 (23:02 +0000)]
Add a callback field and use it for runas_default

21 years agoAdd a callback field and use it for runas_default
Todd C. Miller [Fri, 16 Jan 2004 23:02:18 +0000 (23:02 +0000)]
Add a callback field and use it for runas_default

21 years agoAdd support for chalnecho and display server responses used by fwtk >= 2.0
Todd C. Miller [Thu, 15 Jan 2004 20:13:47 +0000 (20:13 +0000)]
Add support for chalnecho and display server responses used by fwtk >= 2.0

21 years agold.so is ld.so.1 on solaris
Todd C. Miller [Mon, 12 Jan 2004 23:39:00 +0000 (23:39 +0000)]
ld.so is ld.so.1 on solaris

21 years agoUse closefrom() instead of doing the equivalent inline.
Todd C. Miller [Mon, 12 Jan 2004 19:03:54 +0000 (19:03 +0000)]
Use closefrom() instead of doing the equivalent inline.

21 years agoclosefrom(3) for systems w/o it
Todd C. Miller [Mon, 12 Jan 2004 18:55:30 +0000 (18:55 +0000)]
closefrom(3) for systems w/o it

21 years agoUpdate from .pod file.
Todd C. Miller [Fri, 9 Jan 2004 21:29:05 +0000 (21:29 +0000)]
Update from .pod file.

21 years agoSubstitute noexec_file for the sudoers man page
Todd C. Miller [Fri, 9 Jan 2004 21:26:46 +0000 (21:26 +0000)]
Substitute noexec_file for the sudoers man page

21 years agoMention noexec
Todd C. Miller [Fri, 9 Jan 2004 21:24:50 +0000 (21:24 +0000)]
Mention noexec

21 years agoDocument noexec
Todd C. Miller [Fri, 9 Jan 2004 21:16:52 +0000 (21:16 +0000)]
Document noexec

21 years agoMove PAM_CONST macro definition from config.h to pam.c where it belongs.
Todd C. Miller [Fri, 9 Jan 2004 19:39:00 +0000 (19:39 +0000)]
Move PAM_CONST macro definition from config.h to pam.c where it belongs.
We can't have this in config.h since that gets included too early.

21 years agoSome PAM implementations put their headers in /usr/include/pam instead
Todd C. Miller [Fri, 9 Jan 2004 19:35:54 +0000 (19:35 +0000)]
Some PAM implementations put their headers in /usr/include/pam instead
of /usr/include/security.

21 years agoI missed changing the EXEC macro -> EXECV here when I changed this in
Todd C. Miller [Fri, 9 Jan 2004 19:32:43 +0000 (19:32 +0000)]
I missed changing the EXEC macro -> EXECV here when I changed this in
config.h.in and sudo.c a while ago.

21 years agoOpenBSD vax/m88k/hppa don't do shared libs
Todd C. Miller [Fri, 9 Jan 2004 18:15:54 +0000 (18:15 +0000)]
OpenBSD vax/m88k/hppa don't do shared libs

21 years agoo merge the hpux case entries into a single entry w/ its own sub-case statement.
Todd C. Miller [Fri, 9 Jan 2004 08:29:33 +0000 (08:29 +0000)]
o merge the hpux case entries into a single entry w/ its own sub-case statement.
o HP-UX >= 11 support getspnam(), use it in preference to getprpwuid()

21 years agoeval $shrext so that it expands nicely on MacOS X
Todd C. Miller [Fri, 9 Jan 2004 07:58:04 +0000 (07:58 +0000)]
eval $shrext so that it expands nicely on MacOS X

21 years agoDon't lie about making a module, it does the wrong thing on mach
Todd C. Miller [Fri, 9 Jan 2004 07:50:12 +0000 (07:50 +0000)]
Don't lie about making a module, it does the wrong thing on mach

21 years agoRemove requirement that libs must begin with "lib". They don't when
Todd C. Miller [Fri, 9 Jan 2004 07:49:50 +0000 (07:49 +0000)]
Remove requirement that libs must begin with "lib".  They don't when
we point directly at the lib using LD_PRELOAD or its equivalent.

21 years agoDisable support for c++, f77 and java. We don't need it, it takes a lot
Todd C. Miller [Fri, 9 Jan 2004 07:01:15 +0000 (07:01 +0000)]
Disable support for c++, f77 and java.  We don't need it, it takes a lot
of time, and it hosed our check for shared lib support.

21 years agoregen
Todd C. Miller [Fri, 9 Jan 2004 07:00:18 +0000 (07:00 +0000)]
regen

21 years agoCall AC_ENABLE_SHARED and check the status of enable_shared to know when
Todd C. Miller [Fri, 9 Jan 2004 07:00:01 +0000 (07:00 +0000)]
Call AC_ENABLE_SHARED and check the status of enable_shared to know when
shared libs are available.