2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 13:58:05 +00:00
Commit Graph

7787 Commits

Author SHA1 Message Date
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
Todd C. Miller
da13a14303 Do not set an internal name for HP-UX modules, only archives. This
works around a problem with some versions of HP-UX ld where setting
an internal name that doesn't end in .sl causes link errors.
2014-07-01 17:14:50 -06:00
Todd C. Miller
fd7646bceb Never build build static versions of other plugins. 2014-07-01 17:14:17 -06:00
Todd C. Miller
2ab61a1281 Don't build a static libsudo_util.a unless we are linking sudoers
statically.
2014-07-01 14:26:47 -06:00
Todd C. Miller
67efcf0926 Fix my typos in the HP-UX libtool patch 2014-06-29 07:34:51 -06:00
Todd C. Miller
fb60fd863a Mention Solaris audit. 2014-06-27 16:07:20 -06:00
Todd C. Miller
18dbc52e4b Add Solaris audit support; from Gary Winiger at Oracle. 2014-06-27 16:01:40 -06:00
Todd C. Miller
6df6404113 Sync MANIFEST with file name changes. 2014-06-27 15:01:17 -06:00
Todd C. Miller
6217df4c19 regen 2014-06-27 14:56:27 -06:00
Todd C. Miller
a8fa112a53 atobool -> sudo_strtobool
atoid-> sudo_strtoid
atomode -> sudo_strtomode
2014-06-27 14:53:54 -06:00
Todd C. Miller
d6948f5a4a Fix regexp damage when renaming erecalloc() -> sudo_erecalloc() 2014-06-27 11:48:07 -06:00
Todd C. Miller
2be0929f22 Handle systems like AIX that lack a way to set the modification
time on open fds.
2014-06-27 11:47:16 -06:00
Todd C. Miller
1ee8afe1b4 update MANIFEST for alloc.h -> sudo_alloc.h change 2014-06-27 11:13:14 -06:00
Todd C. Miller
2d61d38c23 Add sudo_ prefix to alloc.c functions and rename alloc.h -> sudo_alloc.h 2014-06-27 10:48:31 -06:00
Todd C. Miller
c4c253847e Remove extra sudo_ prefix from vfatalxnodebug and vfatalx_nodebug. 2014-06-27 10:39:49 -06:00
Todd C. Miller
8e088e65c0 Split fileops.c into parseln.c and locking.c 2014-06-27 09:46:24 -06:00
Todd C. Miller
aecef4aa1d Rename warning/fatal -> sudo_warn/sudo_fatal to avoid namespace
pollution in libsudo_util.so.
2014-06-27 09:30:52 -06:00
Todd C. Miller
d36846a699 Reduce name space pollution in libsudo_util.so 2014-06-26 16:21:19 -06:00
Todd C. Miller
9b3c19cc36 Use sudo_dso_load() from libsudo_util.so instead of dlopen() since
we no longer link sudo directly with libdl.so.
2014-06-26 16:01:24 -06:00
Todd C. Miller
7bafa63c15 Don't pollute the namespace with lbuf struct and functions 2014-06-26 15:51:15 -06:00
Todd C. Miller
6bdee0488c Rename parse_gid_list -> sudo_parse_gids to avoid namespace pollution. 2014-06-26 15:51:15 -06:00
Todd C. Miller
9ba5d82926 Rename fmt_string -> sudo_new_key_val to better describe its function. 2014-06-26 15:51:15 -06:00
Todd C. Miller
f029e3e744 Remove touch() from fileops.c and just call utimes/futimes directly.
Rename lock_file -> sudo_lock_file to avoid namespace pollution
2014-06-26 15:51:15 -06:00
Todd C. Miller
36e828b59f Sudo 1.8.11 2014-06-26 15:51:15 -06:00
Todd C. Miller
2166a6afe1 Remove use of setjmp/longjmp in the sudoers plugin. We no longer
call fatal() except in the malloc wrappers and due to libsudo_util
there is now a single copy of fatal/fatalx.
2014-06-26 15:51:15 -06:00
Todd C. Miller
088edcb6f5 Add exported libsudo_util functions to util.exp and mark in headers
using __dso_public.
2014-06-26 15:51:15 -06:00
Todd C. Miller
87c2fe5a31 Prefix all libc replacements with sudo_ and #define the real name
to the sudo_ version.  That way we don't pollute the libc namespace.
2014-06-26 15:51:08 -06:00
Todd C. Miller
4d37a4a162 Top level directory reorg
Move src/po -> po
Combine common and compat -> lib/util
Move zlib -> lib/zlib
2014-06-26 15:51:02 -06:00
Todd C. Miller
d41276f171 libtool patches for HP-UX to support DESTDIR 2014-06-26 15:50:56 -06:00
Todd C. Miller
976836a3d9 Update polypkg from trunk. 2014-06-26 15:50:52 -06:00
Todd C. Miller
fdda9b109d Fix sssd compiler warnings and fix the sha2 digest support. 2014-06-26 15:50:26 -06:00
Todd C. Miller
b5b75b2d8a Don't call gss_krb5_ccache_name() with a NULL pointer when restoring
the old credential cache file name.  This can happen if there was
no old name returned by gss_krb5_ccache_name().  Fixes a crash on
kerberized LDAP on some platforms.
2014-06-17 08:51:41 -06:00