Todd C. Miller
ae137ba557
Sync with translationproject.org
2014-09-17 10:12:12 -06:00
Todd C. Miller
09a876ceda
Make sure we can't insert an nss entry in the list that has already
...
been used before.
2014-09-16 14:15:30 -06:00
Todd C. Miller
e7de8f66ff
Use correct gettext macro with sudo_warnx()
2014-09-16 14:01:02 -06:00
Todd C. Miller
15dee8745d
Make sudoers file nsswitch functions static to parse.c since they
...
are self-contained.
2014-09-15 15:11:30 -06:00
Todd C. Miller
f9ac177763
Fix infinite loop when mulitple sudoers entries are present in
...
nsswitch.conf. From Daniel Kopecek.
2014-09-15 07:40:33 -06:00
Todd C. Miller
e20475922d
There is no longer a reason for the plugin to init the debug subsystem
...
itself. It will always be initialized by the front-end if needed.
2014-09-08 16:24:32 -06:00
Todd C. Miller
2cc8ac30a1
Add hexchar unit test
2014-09-03 10:31:47 -06:00
Todd C. Miller
b3586c46e2
Avoid division by zero if there was no test data.
2014-09-03 10:29:46 -06:00
Todd C. Miller
f6e738feeb
Sync with translationproject.org
2014-09-01 12:47:22 -06:00
Todd C. Miller
191a0569f3
Sync with translationproject.org
2014-08-26 13:55:48 -06:00
Todd C. Miller
af9306cd81
Return -1 from logging functions if we get a write error.
2014-08-26 13:54:29 -06:00
Todd C. Miller
136e6e616f
Add trivial dirty word check to the sample output logging function.
2014-08-26 12:04:25 -06:00
Todd C. Miller
fb82e823f4
Fix return value when kernel has no audit support.
2014-08-15 15:56:25 -06:00
Todd C. Miller
c49ca1d315
Don't allow pam_env to overwrite existing variables when env_reset
...
is disabled unless the variables match the black list and would
normally be removed. It may just be better to never overwrite when
env_reset is disabled.
2014-08-11 10:37:08 -06:00
Todd C. Miller
2f472d5966
Update year range to include 2014
2014-08-09 20:46:21 -06:00
Todd C. Miller
69762d8882
Remove generated files for linker as part of distclean.
2014-08-08 14:49:06 -06:00
Todd C. Miller
696080917c
Avoid building/running the check_symbols test program unless we are
...
building a shared sudoers plugin.
2014-08-08 11:19:20 -06:00
Todd C. Miller
dd43530f0a
Remove two instances of -no-fast-install that were missed before.
2014-08-08 11:07:09 -06:00
Todd C. Miller
df0fd41530
Add explicit support for matching the full environment string
...
(name=value). Bash functions may now be preserved for full matches,
but not for name-only matches.
2014-08-06 16:45:57 -06:00
Todd C. Miller
080d0e650f
Regen .pot files
2014-07-30 09:37:47 -06:00
Todd C. Miller
f29880c1c7
If getaddrinfo() is missing libsudoutil may need to pull in networking
...
libraries.
2014-07-29 13:06:18 -06:00
Todd C. Miller
b0a09fb671
Add check for inet_ntoa() since it may live in libnsl.
...
Make getcwd() replacement private to the SunOS 4 section.
2014-07-28 16:11:39 -06:00
Todd C. Miller
014edc20a3
Avoid mixing declarations and code for non-C99 compilers.
2014-07-28 15:21:44 -06:00
Todd C. Miller
d058611bd6
Fix compilation on systems w/o netgroups.
2014-07-28 06:22:52 -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
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
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
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
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
36a5767e3e
efree -> sudo_efree for consistency
2014-07-10 15:35:04 -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
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
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
4e1e76a4b1
Use libtool to install/uninstall the plugins and sudo_noexec.
2014-06-29 20:45:36 -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
18dbc52e4b
Add Solaris audit support; from Gary Winiger at Oracle.
2014-06-27 16:01:40 -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
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
8e088e65c0
Split fileops.c into parseln.c and locking.c
2014-06-27 09:46:24 -06:00