Todd C. Miller
8b3d118f62
Fix matching of "Path askpass" and "Path noexec"
2012-03-27 12:24:39 -04:00
Todd C. Miller
238186abc9
Quiet a clang-analyzer dead store warning.
2012-03-26 11:03:23 -04:00
Todd C. Miller
d9e5ea4814
If the "timestampowner" user cannot be resolved, use ROOT_UID instead
...
of exiting with a fatal error.
2012-03-26 11:02:06 -04:00
Todd C. Miller
44ce5720de
Remove the NO_EXIT flag to log_error() and add a log_fatal() function
...
that exits and is marked no_return. Fixes false positives from
static analyzers and is easier for humans to read too.
2012-03-26 10:59:14 -04:00
Todd C. Miller
413c2accd9
sync with translationproject.org
2012-03-24 13:38:38 -04:00
Todd C. Miller
2569f943dc
sync with translationproject.org
2012-03-20 14:38:30 -04:00
Todd C. Miller
048a4e3f80
sync with translationproject.org
2012-03-20 14:08:58 -04:00
Todd C. Miller
e0e81674c8
sync with translationproject.org
2012-03-19 11:25:07 -04:00
Todd C. Miller
55d1a1a79d
Use ecalloc() when allocating structs.
2012-03-19 11:24:24 -04:00
Todd C. Miller
dbbb48c45f
Add ecalloc() and commented out recalloc().
...
Use inline strnlen() instead of strlen() in estrndup().
2012-03-19 11:23:25 -04:00
Todd C. Miller
9eeacad6d9
sync with translationproject.org
2012-03-18 12:47:27 -04:00
Todd C. Miller
c85afe4b9c
Remove unused label
2012-03-16 20:13:43 -04:00
Todd C. Miller
ec7767978f
Document what changed in each plugin API revision
2012-03-16 14:39:12 -04:00
Todd C. Miller
2ff9d0318c
Remove bogus optimization that could lead to a double free of the
...
group list.
2012-03-16 12:00:32 -04:00
Todd C. Miller
ced34a6e26
Expand AIX /etc/security/privcmds entry.
2012-03-15 15:25:13 -04:00
Todd C. Miller
db40f6b1ba
Update for sudo 1.8.5
2012-03-15 12:32:56 -04:00
Todd C. Miller
96f046c1ce
Rename plugin "args" to "options"
2012-03-15 12:32:31 -04:00
Todd C. Miller
741f57e68c
Add Lithuanian and Vietnamese translators
2012-03-15 12:21:36 -04:00
Todd C. Miller
039c214878
Ignore comments when comparing new and old pot files.
2012-03-15 11:44:35 -04:00
Todd C. Miller
1234d08c98
regen
2012-03-15 09:19:28 -04:00
Todd C. Miller
d73ed51c58
regen
2012-03-15 09:18:50 -04:00
Todd C. Miller
6d10909949
Pass a pointer to user_env in to the init_session policy plugin
...
function so session setup can modify the user environment as needed.
For PAM authentication, merge the PAM environment with the user
environment at init_session time. We no longer need to swap in the
user_env for environ during session init, nor do we need to disable
the env hooks at init_session time.
2012-03-15 09:18:36 -04:00
Todd C. Miller
0b1baf07ec
Add explicit NULL entries for init_session, register_hooks and
...
deregister_hooks with appropriate comments.
2012-03-15 09:02:19 -04:00
Todd C. Miller
f587fa1535
Quiet a gcc "used uninitialized in this function" false positive.
2012-03-15 08:56:12 -04:00
Todd C. Miller
b330cbbed8
We should always call warning() with a format string or a string literal.
...
In this case, the argument (path) is not user-controlled.
2012-03-15 08:47:23 -04:00
Todd C. Miller
b3da8ccd89
Include sudo_exec.h for the sudo_execve() prototype.
2012-03-14 21:52:31 -04:00
Todd C. Miller
9cd65dafc6
Add check for pam_getenvlist()
2012-03-14 20:55:11 -04:00
Todd C. Miller
83459e13b5
Set args to NULL in default plugin info struct when there is no
...
Plugin line in sudo.conf.
2012-03-14 15:07:50 -04:00
Todd C. Miller
c3ea638b34
regen
2012-03-14 14:20:55 -04:00
Todd C. Miller
b61c0ab473
regen
2012-03-14 14:20:16 -04:00
Todd C. Miller
ed774f2b13
Bump version to 1.8.5
2012-03-14 14:17:44 -04:00
Todd C. Miller
e852b3ab06
Document hooks API
2012-03-14 14:11:18 -04:00
Todd C. Miller
ca0d9c4be9
Make sudoersdir relative to PKG_INSTALL_ROOT for Solaris.
2012-03-13 17:38:03 -04:00
Todd C. Miller
7e11069932
Use sudo_hook_fn_t in struct sudo_hook.
2012-03-13 17:32:50 -04:00
Todd C. Miller
779b6c8e0d
If cross compiling, --host must include the OS in the tuple.
...
E.g. --host powerpc-unknown-linux
2012-03-13 11:01:23 -04:00
Todd C. Miller
d539c606e0
Fix bogus int -> bool conversion; tags can have a value of -1.
2012-03-12 19:34:19 -04:00
Todd C. Miller
19fc56462d
Add env_should_keep() and env_should_delete() wrapper functions to
...
simplify things a bit and hide the fact that matches_env_check()
is not bool.
2012-03-12 16:45:22 -04:00
Todd C. Miller
fa99904b20
Fix application of debian-specific sudoers mods when building packages
...
as non-root.
2012-03-12 15:04:03 -04:00
Todd C. Miller
749784ea5b
matches_env_check() returns int, not boolean
2012-03-12 13:53:54 -04:00
Todd C. Miller
dc727ff6d4
Fix compilation when seteuid() is not available.
2012-03-12 13:52:51 -04:00
Todd C. Miller
4bd136e11a
Simply move the free of ki_proc outside the realloc() loop.
2012-03-12 11:37:33 -04:00
Todd C. Miller
1ca5009563
Bring back the erealloc() for the ENOMEM loop and just zero the
...
pointer after we free it.
2012-03-12 10:49:26 -04:00
Todd C. Miller
9052833f76
Don't try to erealloc() a potentially freed pointer; Mateusz Guzik
2012-03-12 08:54:40 -04:00
Todd C. Miller
1e8f5d4aa4
Use normal error path if unable to set sudoers gid.
2012-03-10 16:38:14 -05:00
Todd C. Miller
7971a5e499
Make this work again on systems w/o seteuid().
2012-03-10 15:29:46 -05:00
Todd C. Miller
9c2dd5eec6
Fix compilation if no seteuid/setreuid/setresuid available.
2012-03-09 17:28:59 -05:00
Todd C. Miller
b49bb17c3e
Better error messages, and added debugging throughout.
...
Fixed seteuid() version of set_perms()/restore_perms().
Fixed logic bug in AIX version of restore_perms().
Added checks to avoid changing uid/gid when we don't have to.
Never set gid/uid state to -1, use the old value instead.
2012-03-09 17:07:41 -05:00
Todd C. Miller
f745a041e2
Fix format string warning on Solaris with gcc 3.4.3.
2012-03-09 12:45:24 -05:00
Todd C. Miller
4d1752d4d1
Always declare environ now that we swap it around unilaterally.
2012-03-09 12:42:30 -05:00
Todd C. Miller
b455bccc5e
Honor LDFLAGS when linking sesh; from Vita Cizek
2012-03-09 10:07:00 -05:00