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
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
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
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
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
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
Todd C. Miller
7e24b8e651
Add Greek PO file for sudoers from translationproject.org
2014-06-04 11:43:39 -06:00
Todd C. Miller
9e5a68627f
Norwegian Bokmaal translation for sudoers from translationproject.com
2014-05-24 07:35:35 -06:00
Todd C. Miller
b0e6977c35
Try to be clearer about which are the input and output files in
...
export mode.
2014-05-13 15:00:43 -06:00
Todd C. Miller
372e30851f
In -x mode, require that the input and output files be different.
...
This won't currently catch collisions between the output file
and an include file.
2014-05-13 14:18:06 -06:00
Todd C. Miller
eb5a367323
BSM and Linux audit do not yet use the argc function argument.
2014-05-13 10:25:43 -06:00
Todd C. Miller
337a712745
Pass argc to audit functions too. Will be needed for Solaris audit
...
support.
2014-05-13 09:41:53 -06:00
Todd C. Miller
ffb07443c3
Do not allow the same callback function to be registered more that
...
once in fatal_callback_register().
Add fatal_callback_deregister() to deregister a callback.
2014-05-12 11:45:17 -06:00
Todd C. Miller
2e3fbaa2c5
Add trivial sudoedit parsing tests.
2014-05-12 09:52:29 -06:00
Todd C. Miller
3c5353c2be
Catalan translation for sudoers from translationproject.org.
2014-05-12 09:51:47 -06:00
Todd C. Miller
70f6249764
Sync with translationproject.org
2014-05-10 15:55:03 -06:00
Todd C. Miller
45ff42eb9f
Don't try to install the temporary sudoers file if we didn't edit it.
...
By default, visudo does not edit files in a #includedir.
Fixes a NULL pointer defef on GNU hurd; Bug #647
2014-05-09 09:29:42 -06:00