]>
granicus.if.org Git - sudo/log
Todd C. Miller [Tue, 28 Sep 2004 18:29:05 +0000 (18:29 +0000)]
Kill _PATH_SUDOERS_TMP; it is not meaningful now that we can have multiple
sudoers files.
Todd C. Miller [Tue, 28 Sep 2004 17:52:59 +0000 (17:52 +0000)]
Rewind sudoers_fp in open_sudoers() instead of sudoers_lookup() so
we start at the right file position when reading include files.
Todd C. Miller [Tue, 28 Sep 2004 01:04:57 +0000 (01:04 +0000)]
document #include
Todd C. Miller [Tue, 28 Sep 2004 00:47:47 +0000 (00:47 +0000)]
regen
Todd C. Miller [Tue, 28 Sep 2004 00:47:30 +0000 (00:47 +0000)]
Add max depth of 128 for the include stack to avoid loops.
Since yyerror() doesn't stop parsing, pass return values back to
yylex and call yyterminate() on error.
Todd C. Miller [Mon, 27 Sep 2004 18:06:26 +0000 (18:06 +0000)]
document tracing
Todd C. Miller [Mon, 27 Sep 2004 18:05:58 +0000 (18:05 +0000)]
Mention PREVENTING SHELL ESCAPES section of sudoers man page
Todd C. Miller [Mon, 27 Sep 2004 16:08:18 +0000 (16:08 +0000)]
regen
Todd C. Miller [Mon, 27 Sep 2004 16:03:15 +0000 (16:03 +0000)]
Add support for #include in sudoers (visudo support TBD)
Todd C. Miller [Mon, 27 Sep 2004 16:02:50 +0000 (16:02 +0000)]
make yyerror()'s argument const
Todd C. Miller [Mon, 27 Sep 2004 16:02:10 +0000 (16:02 +0000)]
Add open_sudoers() stubs.
Todd C. Miller [Mon, 27 Sep 2004 16:01:54 +0000 (16:01 +0000)]
Rename check_sudoers() open_sudoers() and make it return a FILE *
Todd C. Miller [Sun, 26 Sep 2004 16:35:58 +0000 (16:35 +0000)]
Crank version
Todd C. Miller [Sun, 26 Sep 2004 16:33:31 +0000 (16:33 +0000)]
Better HP-UX depot construction
Todd C. Miller [Sat, 25 Sep 2004 21:08:48 +0000 (21:08 +0000)]
o Made children global so check_exec() can lookup a child.
o Replaced uid in struct childinfo with struct passwd * (for runas)
o new_child() now takes a parent pid so the runas info can be inherited
o Added find_child() to lookup a child by its pid
o update_child() now fills in a struct passwd
o Converted the big if/else mess in set_policy to a switch
o Syscalls that change uid are now "ask" so we get SYSTR_MSG_UGID events
Todd C. Miller [Sat, 25 Sep 2004 21:01:46 +0000 (21:01 +0000)]
Add flag to sudo_pwdup that indicates whether or not to lookup the
shadow password. Will be used to a struct passwd that has the
shadow password already filled in.
Todd C. Miller [Sat, 25 Sep 2004 20:58:11 +0000 (20:58 +0000)]
add missing increment of addr in read_string()
Todd C. Miller [Sat, 25 Sep 2004 20:15:44 +0000 (20:15 +0000)]
Remove bogus call to update_child() and some cosmetic fixes
Todd C. Miller [Sat, 25 Sep 2004 20:11:39 +0000 (20:11 +0000)]
Don't leak /dev/systrace fd to tracee
Make initialized global for simplicity
If STRIOCATTACH returns EBUSY we are already being traced
Check for user_args == NULL in setproctitle() call
Add missing calls to STRIOCANSWER
Todd C. Miller [Sat, 25 Sep 2004 17:15:06 +0000 (17:15 +0000)]
g/c sudo_pwdup proto
Todd C. Miller [Sat, 25 Sep 2004 00:21:04 +0000 (00:21 +0000)]
Add target for building a depot file
Todd C. Miller [Sat, 25 Sep 2004 00:07:26 +0000 (00:07 +0000)]
trim includes
Todd C. Miller [Fri, 24 Sep 2004 18:11:19 +0000 (18:11 +0000)]
regen
Todd C. Miller [Fri, 24 Sep 2004 18:10:32 +0000 (18:10 +0000)]
document --with-systrace
Todd C. Miller [Fri, 24 Sep 2004 18:10:27 +0000 (18:10 +0000)]
Add check for setproctitle
Todd C. Miller [Fri, 24 Sep 2004 18:09:47 +0000 (18:09 +0000)]
pass struct str_msg_ask in to syscall checker so it can set the error code
Todd C. Miller [Fri, 24 Sep 2004 17:30:23 +0000 (17:30 +0000)]
systrace(4) support for sudo. On systems with the systrace(4) kernel
facility (OpenBSD, NetBSD, Linux w/ patches) sudo can intercept exec
calls and check the exec args against the sudoers file.
In other words, sudo can now control subcommands and shell escapes.
Todd C. Miller [Fri, 24 Sep 2004 17:17:29 +0000 (17:17 +0000)]
Call systrace_attach() if FLAG_TRACE is set.
Todd C. Miller [Fri, 24 Sep 2004 17:15:51 +0000 (17:15 +0000)]
Add trace Defaults option and TRACE/NOTRACE tags and set FLAG_TRACE
Todd C. Miller [Fri, 24 Sep 2004 17:13:24 +0000 (17:13 +0000)]
Don't close sudoers_fp, keep it open and set close on exec flag instead.
Todd C. Miller [Fri, 24 Sep 2004 17:11:14 +0000 (17:11 +0000)]
Add trace option
Todd C. Miller [Fri, 24 Sep 2004 00:24:09 +0000 (00:24 +0000)]
Add systrace
Todd C. Miller [Fri, 24 Sep 2004 00:23:51 +0000 (00:23 +0000)]
SunOS /bin/sh blows up with configure
Todd C. Miller [Fri, 24 Sep 2004 00:23:28 +0000 (00:23 +0000)]
Include sys/param.h before systrace.h
Todd C. Miller [Fri, 24 Sep 2004 00:15:19 +0000 (00:15 +0000)]
regen
Todd C. Miller [Fri, 24 Sep 2004 00:15:13 +0000 (00:15 +0000)]
_PATH_DEV_SYSTRACE
Todd C. Miller [Fri, 24 Sep 2004 00:14:44 +0000 (00:14 +0000)]
line up options in --help
Todd C. Miller [Fri, 24 Sep 2004 00:11:31 +0000 (00:11 +0000)]
Add --with-systrace
Todd C. Miller [Thu, 23 Sep 2004 17:35:55 +0000 (17:35 +0000)]
regen
Todd C. Miller [Thu, 23 Sep 2004 17:35:40 +0000 (17:35 +0000)]
make this work with autoconf-2.59
Todd C. Miller [Thu, 16 Sep 2004 16:58:03 +0000 (16:58 +0000)]
Simplify logic around open & stat of files and do sanity on edited
file even if we lack fstat (still racable but worth doing).
Todd C. Miller [Wed, 15 Sep 2004 22:47:48 +0000 (22:47 +0000)]
Add support url
Todd C. Miller [Wed, 15 Sep 2004 20:11:22 +0000 (20:11 +0000)]
versino 1.6.8p1
Todd C. Miller [Wed, 15 Sep 2004 19:20:24 +0000 (19:20 +0000)]
more changes for 1.6.8p1
Todd C. Miller [Wed, 15 Sep 2004 19:18:38 +0000 (19:18 +0000)]
1.6.8p1
Todd C. Miller [Wed, 15 Sep 2004 16:16:20 +0000 (16:16 +0000)]
Add sanity check so we don't try to edit something other than a regular file.
Aaron Spangler [Wed, 15 Sep 2004 00:55:00 +0000 (00:55 +0000)]
sync
Aaron Spangler [Wed, 15 Sep 2004 00:21:59 +0000 (00:21 +0000)]
document --with-ldap-conf-file
Todd C. Miller [Tue, 14 Sep 2004 21:43:31 +0000 (21:43 +0000)]
political correctness strikes again
Todd C. Miller [Tue, 14 Sep 2004 19:09:00 +0000 (19:09 +0000)]
sync
Todd C. Miller [Sun, 12 Sep 2004 23:50:35 +0000 (23:50 +0000)]
Install sudoedit man link
Todd C. Miller [Sun, 12 Sep 2004 18:25:54 +0000 (18:25 +0000)]
Update PAM note and mention where HP-UX users can download gcc binaries.
Todd C. Miller [Sun, 12 Sep 2004 16:08:25 +0000 (16:08 +0000)]
libtool wants to install stuff from .libs so fake one up for binary
installations.
Todd C. Miller [Sun, 12 Sep 2004 15:53:28 +0000 (15:53 +0000)]
rm -f old sudoedit link instead of using ln -f
set LIBTOOL correctly
Todd C. Miller [Sun, 12 Sep 2004 15:53:03 +0000 (15:53 +0000)]
Deal with "uname -m" having slashes in it
rm -f old sudoedit link instead of using ln -f
Todd C. Miller [Sun, 12 Sep 2004 14:22:36 +0000 (14:22 +0000)]
Makefile.binary -> Makefile.binary.in for config.status substitution
Add support for installing noexec bits
Todd C. Miller [Sun, 12 Sep 2004 14:21:49 +0000 (14:21 +0000)]
Copy noexec bits into binary dists too
No longer use my old arch script for making binary dists
Todd C. Miller [Sun, 12 Sep 2004 13:36:43 +0000 (13:36 +0000)]
Install sudoedit link.
Todd C. Miller [Sat, 11 Sep 2004 16:25:27 +0000 (16:25 +0000)]
avoid __P so there is no need for compat.h to be included
Todd C. Miller [Sat, 11 Sep 2004 16:24:28 +0000 (16:24 +0000)]
Don't use HAVE_UTIME_H before including config.h.
Todd C. Miller [Fri, 10 Sep 2004 16:31:15 +0000 (16:31 +0000)]
Fix Solatis futimes macro
Todd C. Miller [Thu, 9 Sep 2004 15:02:28 +0000 (15:02 +0000)]
Rename ots -> omtim for improved readability.
Todd C. Miller [Wed, 8 Sep 2004 18:38:06 +0000 (18:38 +0000)]
Redo changes in revision 1.7. Don't really need to keep the temp
file open; re-opening it with the invoking user's euid is sufficient.
Todd C. Miller [Wed, 8 Sep 2004 18:36:36 +0000 (18:36 +0000)]
sync
Todd C. Miller [Wed, 8 Sep 2004 18:35:53 +0000 (18:35 +0000)]
regen
Todd C. Miller [Wed, 8 Sep 2004 18:34:38 +0000 (18:34 +0000)]
back out revision 1.70; it is no long applicable
Todd C. Miller [Wed, 8 Sep 2004 15:57:49 +0000 (15:57 +0000)]
Let the loader initialize nep
Todd C. Miller [Wed, 8 Sep 2004 15:49:26 +0000 (15:49 +0000)]
Removed unneed check for fchown
Add check for gettimeofday
Move autoheader template stuff into separate AH_TEMPLATE lines
Todd C. Miller [Wed, 8 Sep 2004 15:48:23 +0000 (15:48 +0000)]
Use timespec throughout.
Todd C. Miller [Wed, 8 Sep 2004 15:47:35 +0000 (15:47 +0000)]
gettime.[co]
Todd C. Miller [Wed, 8 Sep 2004 15:47:09 +0000 (15:47 +0000)]
function to return the current time in a struct timespec
Todd C. Miller [Wed, 8 Sep 2004 14:51:53 +0000 (14:51 +0000)]
Not a darpa-sponsored file.
Todd C. Miller [Tue, 7 Sep 2004 20:36:31 +0000 (20:36 +0000)]
Add a check for struct timespec and provide it for those without.
Todd C. Miller [Tue, 7 Sep 2004 19:57:00 +0000 (19:57 +0000)]
Add checks for st_mtim and st_mtimespec and add macros for pulling
the mtime sec and nsec out of struct stat. These are used in sudo_edit()
to better tell whether or not the file has changed.
Todd C. Miller [Tue, 7 Sep 2004 19:55:37 +0000 (19:55 +0000)]
Add an extra param to touch() for nsec
Todd C. Miller [Tue, 7 Sep 2004 18:06:33 +0000 (18:06 +0000)]
Call mkstemp() as the in invoking user so we don't have to chown the file later.
Only touch() the temp file if we can do it via the file descriptor.
Don't check for modification of the temp file if we lack fstat().
Catch errors read()ing the temp file.
Todd C. Miller [Tue, 7 Sep 2004 18:04:48 +0000 (18:04 +0000)]
If path is NULL and fd == -1 return -1.
Todd C. Miller [Tue, 7 Sep 2004 17:31:54 +0000 (17:31 +0000)]
closefrom() is overkill, the only extra fds are the ones we opened so
just close those in the child.
Todd C. Miller [Tue, 7 Sep 2004 17:14:52 +0000 (17:14 +0000)]
Use utimes() and futimes() instead of utime() in touch(), emulating as needed.
Not all systems are able to support setting the times of an fd so touch()
takes both an fd and a file name as arguments.
Aaron Spangler [Tue, 7 Sep 2004 01:12:34 +0000 (01:12 +0000)]
Rare SEGV
Todd C. Miller [Mon, 6 Sep 2004 20:46:28 +0000 (20:46 +0000)]
regen
Todd C. Miller [Mon, 6 Sep 2004 20:45:27 +0000 (20:45 +0000)]
Add SUPPORT section and re-order some of the sections to match the order
we use in OpenBSD.
Aaron Spangler [Mon, 6 Sep 2004 19:05:32 +0000 (19:05 +0000)]
Openldap ~/.ldaprc fix
Todd C. Miller [Mon, 6 Sep 2004 16:18:54 +0000 (16:18 +0000)]
Talk about how the editor must write its changes to the original file and
not just use rename(2).
Todd C. Miller [Mon, 6 Sep 2004 16:12:00 +0000 (16:12 +0000)]
sync
Todd C. Miller [Mon, 6 Sep 2004 16:11:42 +0000 (16:11 +0000)]
Keep the temp file open instead of re-opening after the editor has exited.
Todd C. Miller [Mon, 6 Sep 2004 16:10:42 +0000 (16:10 +0000)]
Update for current redhat/fedora core.
Aaron Spangler [Fri, 3 Sep 2004 01:56:45 +0000 (01:56 +0000)]
tls_ examples
Aaron Spangler [Thu, 2 Sep 2004 04:03:25 +0000 (04:03 +0000)]
config tls_* options
Todd C. Miller [Sun, 29 Aug 2004 15:39:31 +0000 (15:39 +0000)]
No need for -lcrypt when using pam.
Todd C. Miller [Fri, 27 Aug 2004 03:57:19 +0000 (03:57 +0000)]
regen
Aaron Spangler [Fri, 27 Aug 2004 03:44:35 +0000 (03:44 +0000)]
Allow --with-ldap-conf-file option to override LDAP_CONF
Aaron Spangler [Fri, 27 Aug 2004 02:08:10 +0000 (02:08 +0000)]
cleanup debug message
Aaron Spangler [Thu, 26 Aug 2004 23:29:05 +0000 (23:29 +0000)]
more config info
Todd C. Miller [Tue, 24 Aug 2004 18:01:14 +0000 (18:01 +0000)]
Add cmnd_base to struct sudo_user and set it in init_vars().
Add cmnd_stat to struct sudo_user and set it in sudo_goodpath().
No longer use gross statics in command_matches().
Also rename some variables for improved clarity.
Todd C. Miller [Sat, 21 Aug 2004 18:33:16 +0000 (18:33 +0000)]
document HP's crippled compiler deficiency.
Todd C. Miller [Sat, 21 Aug 2004 18:25:46 +0000 (18:25 +0000)]
Fix some thinkos in --with-editor and --with-env-editor descriptions.
Noticed by Norihiko Murase.
Todd C. Miller [Sat, 21 Aug 2004 18:20:38 +0000 (18:20 +0000)]
--with-noexec takes an optional PATH argument.
Todd C. Miller [Sat, 21 Aug 2004 18:20:11 +0000 (18:20 +0000)]
document --with-noexec
Todd C. Miller [Tue, 17 Aug 2004 20:21:58 +0000 (20:21 +0000)]
sync