Commit Graph

7468 Commits

Author SHA1 Message Date
Todd C. Miller
ebbd62eac8 Don't link progname test with libsudo_util, just link in progname.lo
directly since that is all we need.  Avoid a linker issue on darwin.
2014-07-25 14:07:09 -06:00
Todd C. Miller
7421524478 Remove pstat_getproc() path as pst_ucomm on HP-UX will return the
target of a symbolic link and not the name of the link itself.
Avoid using pr_fname on AIX for the same reason.
Bug 654
2014-07-25 09:42:41 -06:00
Todd C. Miller
f6fec06037 Add test for getprogname() and symbolic links; bug 654 2014-07-25 09:37:58 -06:00
Todd C. Miller
5ff2c80250 Document tracing 2014-07-24 14:39:50 -06:00
Todd C. Miller
536e5f4189 sudo_term_{erase,kill} are regular symbols not functions. 2014-07-23 17:06:33 -06:00
Todd C. Miller
28f6ee5f9e Fix NULL deref if base64_decode returns -1. 2014-07-22 14:53:15 -06:00
Todd C. Miller
47835ff289 Rename missing.h -> sudo_compat.h 2014-07-22 14:25:16 -06:00
Todd C. Miller
ecaecdc1f4 Merge secure_path.h -> sudo_util.h 2014-07-22 11:37:39 -06:00
Todd C. Miller
844a285391 Version the functions in libsudo_util 2014-07-22 11:26:17 -06:00
Todd C. Miller
127ba1354b Rename gettext.h -> sudo_gettext.h 2014-07-21 14:49:43 -06:00
Todd C. Miller
3687b665cb Rename fatal.h -> sudo_fatal.h 2014-07-21 14:40:18 -06:00
Todd C. Miller
b45727cefa Rename queue.h -> sudo_queue.h to avoid collisions with the system
version.
2014-07-21 14:37:27 -06:00
Todd C. Miller
d7c309f702 Conver sudo_debug_write() to a macro 2014-07-21 09:13:47 -06:00
Todd C. Miller
2b104d6b3c Fix man page post-processing; it was deleting more than intended. 2014-07-17 08:40:26 -06:00
Todd C. Miller
c6879683a0 Remove double $(srcdir) when running sed scripts. 2014-07-16 16:37:16 -06:00
Todd C. Miller
a1da1d1e4c "an EXEC tag" not "a EXEC tag" 2014-07-16 15:44:21 -06:00
Todd C. Miller
0d6e81ee52 Document that I/O logging is not enabled by default. 2014-07-16 15:38:52 -06:00
Todd C. Miller
64005c2e0b Document that exec_background is off by default. 2014-07-16 15:25:41 -06:00
Todd C. Miller
fb96eb2445 Error out if sesh is run as a login shell but the shell it needs
to run has no slash.  This shouldn't happen in practice.
2014-07-14 09:56:38 -06:00
Todd C. Miller
9071e95080 Move mksiglist.h and mksigname.h to lib/util where they belong. 2014-07-14 09:46:17 -06:00
Todd C. Miller
96d1967ab0 Avoid passing -no-fast-install to libtool as this results in the
build dir being left in the library path of the installed executable.
Instead, we remove the "lt-" prefix from the program name in
initprogname() so that the regress test output is unaffected by
libtool's binary wrapper.
2014-07-14 09:08:50 -06:00
Todd C. Miller
4bc4522ed8 Fix syntax error with some shells. 2014-07-14 06:32:21 -06:00
Todd C. Miller
00bac387b3 Force libtool to use runtime linking on AIX so that it installs the
plugins as .so files and not .a files.
2014-07-13 20:14:02 -06:00
Todd C. Miller
430ad0fa8a Be sure to NUL-terminate the decoded secret when converting from
base64.
2014-07-13 15:23:32 -06:00
Todd C. Miller
b5a6037a6c Fix a pointer signednes warning calling base64_decode(). 2014-07-13 14:27:20 -06:00
Todd C. Miller
9f3caa5a62 Use sudo_strtoid() now that it is located in the same library. 2014-07-13 07:09:00 -06:00
Todd C. Miller
c10c9cd5e6 Skip leading space (ala strtol) so that we can pick up the sign
even if it is not the first character of the string.
2014-07-13 07:08:12 -06:00
Todd C. Miller
cedc34561d For sudoedit, audit the actual editor being run, not just the
sudoedit command.
2014-07-12 10:35:00 -06:00
Todd C. Miller
d5ecc1590d Audit failed user role changes. RedHat bz #665131 2014-07-12 10:04:19 -06:00
Todd C. Miller
de56eb8b92 Avoid running check_symbols for static sudoers 2014-07-12 09:16:36 -06:00
Todd C. Miller
be9149f6c5 Adapt to unused alias changes. 2014-07-12 08:54:52 -06:00
Todd C. Miller
e64f1198b6 An unused alias is not really an error, even in strict mode.
RedHat bz #604297
2014-07-12 07:30:18 -06:00
Todd C. Miller
3f216cc2be When running a login shell via sesh, make new argv[0] -shell, not
/path/to-shell.  RedHat bz #1065418
2014-07-12 06:51:00 -06:00
Todd C. Miller
691421011d The RHEL sudo package allows users in group wheel to run sudo. 2014-07-11 15:42:01 -06:00
Todd C. Miller
d86df074d5 Avoid packaging parent directories when they are system directories.
Currently we just skip this when prefix is /usr
2014-07-11 15:32:17 -06:00
Todd C. Miller
81a989fd19 Fix typo: sudo.d -> sudoers.d. From RedHat bz #726634 2014-07-11 11:02:05 -06:00
Todd C. Miller
06076e445b RHEL 6 and above use /etc/sudo-ldap.conf not /etc/ldap.conf 2014-07-11 10:58:20 -06:00
Todd C. Miller
16b9aed751 For rpm, do not specify a mode in %attr for symbolic links. Avoids
the warning "Explicit %attr() mode not applicaple to symlink"
2014-07-11 10:27:23 -06:00
Todd C. Miller
36a5767e3e efree -> sudo_efree for consistency 2014-07-10 15:35:04 -06:00
Todd C. Miller
1996777cd4 regen 2014-07-10 15:31:54 -06:00
Todd C. Miller
c35d7f2b04 Add support for base64 secrets in ldap.conf and ldap.secret.
Based on an idea from anthony AT rlost DOT com
2014-07-10 15:31:11 -06:00
Todd C. Miller
bd0787b680 Don't use the HP compiler in preference to gcc. Some versions have
trouble compiling lbuf.c.
2014-07-09 14:00:08 -06:00
Todd C. Miller
78d2b42b7e Remove @SOEXT@ and @SHLIB_EXT@ now that we use libtool to install
shared objects.  Instead, use the new @SHLIB_ENABLE@ that is set
to the value of $enable_dlopen.  For sudo_noexec.so there is nothing
special to do since the install-noexec target is only called when
noexec is enabled by configure.
2014-07-08 20:19:09 -06:00
Todd C. Miller
e806b96511 Make dynamic shared objects non-writable on HP-UX. Using writable
DSOs can substantially increase the load time.
2014-07-08 10:03:47 -06:00
Todd C. Miller
12c3b456d8 Add sudo_warn_strerror() that wraps strerror() with calls to
setlocale() in sudoers so we always get the error string in the
user's locale.  Also change _warning() to take the error number as
a parameter instead of examining errno.
2014-07-08 09:52:21 -06:00
Todd C. Miller
2bad717548 Avoid a cppcheck warning when NSIG is not defined. 2014-07-03 16:55:01 -06:00
Todd C. Miller
5c117d480c Fix typos in utimes/futimes macros. 2014-07-03 15:06:46 -06:00
Todd C. Miller
4ad98300d4 regen 2014-07-01 20:37:11 -06:00
Todd C. Miller
fb2b6e59fb Fix sudo when --disable-shared configure option was specified. 2014-07-01 17:16:12 -06:00
Todd C. Miller
4e1e76a4b1 Use libtool to install/uninstall the plugins and sudo_noexec. 2014-06-29 20:45:36 -06:00