Commit Graph

346 Commits

Author SHA1 Message Date
Todd C. Miller
1c67169b9d Substitute in @PROGS@ into src/Makefile to add sesh 2010-04-27 11:56:51 -04:00
Todd C. Miller
b4a26b7691 Use timeval directly instead of converting to timespec when dealing
with file times and time of day.
2010-04-20 16:44:02 -04:00
Todd C. Miller
c47ab0273a Darwin >= 9.x has real setreuid(2) 2010-04-18 12:42:52 -04:00
Todd C. Miller
b71844daf7 Don't change the environ directly in the sudoers plugin 2010-04-16 07:56:16 -04:00
Todd C. Miller
fb87c040cc Add workaround for the lack of the environ pointer on Mac OS X
in dlopen()ed modules.  Use of environ in the sudoers plugin should
ultimately be removed but this will do for the moment.
2010-04-14 06:38:32 -04:00
Todd C. Miller
6a5ea5be01 Fix up some AC_DEFINE descriptions and regen config.h.in 2010-04-06 04:53:42 -04:00
Todd C. Miller
717da12e96 Top-level Makefile.in. Nothing is currently substituted but this
is needed for separate build dirs.
2010-04-04 20:05:02 -04:00
Todd C. Miller
c2eeceaa1f No need to provide strdup() or strndup(), sudo uses estrdup() and estrndup() 2010-04-02 14:46:00 -04:00
Todd C. Miller
8c91f0a30c Create our own sys_siglist for systems without it for use by strsignal() 2010-04-02 07:47:19 -04:00
Todd C. Miller
0ea0d60cbd Add REPLAY_LIBS for sudoreplay and add -lrt to it on Solaris. 2010-03-22 19:55:49 -04:00
Todd C. Miller
8df6ba9fee Merge 5177a284b9ff 549f8f7c2463 88f3181692fe from 1.7 branch. 2010-03-22 10:19:07 -04:00
Todd C. Miller
c2905815e6 Fix installation of sudoers.ldap in "make install" when --with-ldap
was specified without a directory.  From Prof. Dr. Andreas Mueller

--HG--
branch : 1.7
2010-03-22 09:50:06 -04:00
Todd C. Miller
8db39a8586 Add checks for getgrset and getgrouplist and use replacement getgrouplist
if the system doesn't support it.
2010-03-22 08:25:30 -04:00
Todd C. Miller
2e27226a0d Bring back SUDOERS_PLUGIN but add .dylib -> .so conversion for
Darwin where libraries end in .dylib but modules end in .so
2010-03-19 20:01:00 -04:00
Todd C. Miller
0dbf4362d9 Fix --with-ldap 2010-03-19 07:32:14 -04:00
Todd C. Miller
5be1b80169 Hard-code sudoers.so instead of using SUDOERS_PLUGIN since libtool
appears to always install a shared object with the .so suffix.
2010-03-18 12:02:05 -04:00
Todd C. Miller
ba9d2f5bb6 Play more nicely with libtool and let it build libreplace (was libmissing)
for us.
2010-03-18 11:42:12 -04:00
Todd C. Miller
5a2a2d193f Set the sudoers plugin name in configure so we get the extension right. 2010-03-17 18:48:19 -04:00
Todd C. Miller
90ec112540 Build libmissing in two flavors (one PIC one non-PIC) and link with the
appropriate one.
2010-03-14 18:05:00 -04:00
Todd C. Miller
6b4d97ebc3 Add strdup and strndup to compat 2010-03-12 17:11:11 -05:00
Todd C. Miller
1dcebf901a Remove redundant getgroups check 2010-03-12 12:39:04 -05:00
Todd C. Miller
0795ef846c Require either termios or termio, no more sgtty. 2010-03-12 11:45:57 -05:00
Todd C. Miller
cb8696d67e Change the sys_siglist check to use AC_CHECK_DECLS and also check
for _sys_siglist and__sys_siglist
2010-03-12 05:26:01 -05:00
Todd C. Miller
5775026a51 Change SUDO_LDFLAGS to SUDOERS_LDFLAGS and add SUDOERS_OBJS.
We now use SUDO_OBJS for the main driver as part of OBJS.
2010-03-11 17:21:34 -05:00
Todd C. Miller
c7b382a905 AUTH_OBJS should contain .lo files not .o files. 2010-03-06 07:36:02 -05:00
Todd C. Miller
cf07bde706 No longer need to substitute in script.o and pty.o; I/O logging support
is always built.
2010-03-04 08:12:36 -05:00
Todd C. Miller
ca3ee9de17 Sudo now requires an ANSI/ISO C compiler 2010-02-27 10:04:39 -05:00
Todd C. Miller
fadb324f1a Fix up compat dependencies.
Fix distclean target in doc/Makefile.in
2010-02-21 16:12:01 -05:00
Todd C. Miller
51131cdb89 Fix typo 2010-02-21 15:32:59 -05:00
Todd C. Miller
279cf1e958 Add doc Makefile.in and wire it up 2010-02-21 13:37:52 -05:00
Todd C. Miller
3327db2171 Fix setting of plugin dir 2010-02-20 13:20:57 -05:00
Todd C. Miller
b6a4cf7233 Modular sudo front-end which loads policy and I/O plugins that do
most the actual work.  Currently relies on dynamic loading using
dlopen().  See doc/plugin.pod for the plugin API.
2010-02-20 09:41:49 -05:00
Todd C. Miller
fd37f5c59f Use setrlimit64(), if available, instead of setrlimit() when setting
AIX resource limits since rlim_t is 32bits.

--HG--
branch : 1.7
2010-02-06 15:16:04 -05:00
Todd C. Miller
6810071e87 bump to 1.7.3b2 2009-12-13 22:26:32 +00:00
Todd C. Miller
b8239bb34c Add support for mbr_check_membership() as present in darwin. 2009-12-12 15:37:52 +00:00
Todd C. Miller
600ce3dfa6 Treat timestamp files from before we booted as old. Idea from and
Apple patch.
2009-12-10 16:59:27 +00:00
Todd C. Miller
871b3fb125 Fix a few typos in the descriptions; from Jeff Makey
Only do the check for krb5_get_init_creds_opt_free() taking two
arguments if we find krb5_get_init_creds_opt_alloc().  Otherwise
we will get a false positive when using our own
krb5_get_init_creds_opt_free which takes only a single argument.
2009-11-04 14:42:04 +00:00
Todd C. Miller
d0fdeb12a2 Remove a spurious comma in the kerb5 bits. 2009-11-03 14:58:47 +00:00
Todd C. Miller
602a62c01e First pass at zlib support for transcript data files 2009-10-22 23:50:16 +00:00
Todd C. Miller
e5087b7269 Add support for IRIX-style dynamic ptys 2009-10-17 12:54:07 +00:00
Todd C. Miller
52b2762f70 Disable transcript support if no tcsetpgrp until we support older BSD-style
job control.
2009-10-16 13:52:47 +00:00
Todd C. Miller
9544845ef8 Break out pty code into pty.c 2009-10-16 13:29:38 +00:00
Todd C. Miller
e443ee9ff4 add killpg macro if no killpg function 2009-10-16 12:11:10 +00:00
Todd C. Miller
babf9292df Push ptem and ldterm for STERAMS-based systems when allocating a pty. 2009-10-16 00:07:11 +00:00
Todd C. Miller
233377a8b7 Add check for strsignal() and a simple implementation if it is not there but sys_siglist is 2009-10-14 20:04:04 +00:00
Todd C. Miller
c6a8c71d2b Fix default case of transcript_enabled being unset. 2009-09-26 20:25:58 +00:00
Todd C. Miller
8a6dcebd8a Hook up --disable-transcript and --enable-transcript=DIR 2009-09-26 15:34:46 +00:00
Todd C. Miller
0e823cdad2 _PATH_SUDO_SESSDIR -> _PATH_SUDO_TRANSCRIPT
Add --enable-transcript=DIR option to specify the directory
2009-09-25 20:39:09 +00:00
Todd C. Miller
104a402b6a Substitute in default value for secure_path 2009-09-25 01:11:49 +00:00
Todd C. Miller
6794ef5323 Move nanosleep() emulation into its own file
Check librt.a for nanosleep if we don't find it in libc
2009-09-19 17:44:34 +00:00