Todd C. Miller
f7925b5889
Add Serbian translation for sudo from translationproject.org
2011-11-30 14:57:45 -05:00
Todd C. Miller
ab887a6fb0
No longer pass debug_file to plugin, plugins must now use CONV_DEBUG_MSG
2011-11-30 14:56:41 -05:00
Todd C. Miller
a64f1eaea8
Do not close error pipe or debug fd via closefrom() as we need them
...
to report an exec error should one occur.
2011-11-29 19:51:24 -05:00
Todd C. Miller
55166914c4
regen
2011-11-21 16:43:46 -05:00
Todd C. Miller
f689afb5ee
Fix non-dynamic (no dlopen) sudo build.
2011-11-13 21:24:54 -05:00
Todd C. Miller
65b781a2ef
Use SUDO_CONV_DEBUG_MSG in the plugin instead of writing
...
directly to the debug file.
2011-11-13 13:55:19 -05:00
Todd C. Miller
e58b232740
Change Debug sudo.conf setting to take a program name as the first
...
argument. In the future, this will allow visudo and sudoreplay to
use their own Debug entries.
2011-11-08 08:24:45 -05:00
Todd C. Miller
5d2c01e3d3
fix sudo_debug_printf priority
2011-11-08 08:22:48 -05:00
Todd C. Miller
3ee9cef0da
Fold SUDO_DEBUG_PROGERR and SUDO_DEBUG_SYSERR into SUDO_DEBUG_ERROR
2011-11-07 16:33:49 -05:00
Todd C. Miller
ab75dd2e30
Get rid of done: label. If the child exits we still need to close
...
the pty, update utmp and restore the SELinux tty context.
2011-10-24 11:14:20 -04:00
Todd C. Miller
839919566e
Add debug_decl/debug_return (almost) everywhere.
...
Remove old sudo_debug() and convert users to sudo_debug_printf().
2011-10-22 14:40:21 -04:00
Todd C. Miller
9923464d96
Wrap error/errorx and warning/warningx functions with debug statements.
...
Disable wrapping for standalone sudoers programs as well as memory
allocation functions (to avoid infinite recursion).
2011-10-22 14:28:33 -04:00
Todd C. Miller
53e3ad11b5
New debug framework for sudo and plugins using /etc/sudo.conf that
...
also supports function call tracing.
2011-10-22 14:00:52 -04:00
Todd C. Miller
dd3902e115
Add Italian translation for sudo from translationproject.org
2011-10-10 11:00:09 -04:00
Todd C. Miller
82dd8f65fd
Japanese translation for sudo and sudoers from translationproject.org
2011-10-10 06:45:28 -04:00
Todd C. Miller
de684e5d2c
regen pot files
2011-09-27 14:07:18 -04:00
Todd C. Miller
7304bc744e
Add check for old being NULL in utmp_setid(); from Steven McDonald
2011-09-27 09:30:59 -04:00
Todd C. Miller
6028afae83
Add Italian translation for sudo from translationproject.org
...
Regen .mo files
2011-09-22 14:56:43 -04:00
Todd C. Miller
4724e313e0
FreeBSD has libutil.h not util.h
2011-09-21 09:52:33 -04:00
Todd C. Miller
f730cb7873
Assume all modern systems support fstat(2).
2011-08-31 11:19:10 -04:00
Todd C. Miller
47af0fc2b8
Add configure test for missing errno declaration and only
...
declare it ourselves if it is missing.
2011-08-30 10:05:30 -04:00
Todd C. Miller
d81c14005f
Silence compiler warnings on Solaris with gcc 3.4.3
2011-08-23 16:42:18 -04:00
Todd C. Miller
8fb53f5e4b
Add new Esperanto translation from translationproject.org
2011-08-22 08:26:50 -04:00
Todd C. Miller
a6224a7342
Regen pot files
2011-08-17 11:40:14 -04:00
Todd C. Miller
aaaa5d05d9
Update Finish, Polish, Russian and Ukrainian translations from
...
translationproject.org.
2011-08-09 14:57:57 -04:00
Todd C. Miller
fecb397343
Link libsudo_noexec.la with LDLDFLAGS for -static-libgcc
2011-08-01 19:02:16 -04:00
Todd C. Miller
eb09c303a1
Add new Russian sudo translation from translationproject.org
...
and rebuild the other translation files.
2011-07-30 09:35:56 -04:00
Todd C. Miller
8255ed69b9
Go back to escaping the command args for "sudo -i" and "sudo -s"
...
before calling the plugin. Otherwise, spaces in the command args
are not treated properly. The sudoers plugin will unescape non-spaces
to make matching easier.
2011-07-29 10:10:40 -04:00
Todd C. Miller
6365c779c0
Updated Ukranian and Chinese (simplified) po files from
...
translationproject.org
2011-07-28 09:08:50 -04:00
Todd C. Miller
3606fc4419
Rebuild pot files
2011-07-27 14:23:45 -04:00
Todd C. Miller
80138c88ba
Remove fallback to per-group lookup when matching groups in sudoers.
...
The sudo front-end will now use getgrouplist() to get the user's
list of groups if getgroups() fails or returns zero groups so we
always have a list of the user's groups. For systems with
mbr_check_membership() which support more that NGROUPS_MAX groups
(Mac OS X), skip the call to getgroups() and use getgrouplist() so
we get all the groups.
2011-07-25 09:17:18 -04:00
Todd C. Miller
022591f4bf
Add a wrapper for setgroups() that trims off extra groups and retries
...
if setgroups() fails. Also add some missing addrefs for PERM_USER
and PERM_FULL_USER.
2011-07-20 16:54:12 -04:00
Todd C. Miller
b124635b04
Instead of keeping separate groups and gids arrays, create struct
...
group_info and use it to store both, along with a count for each.
Cache group info on a per-user basis using getgrouplist() to get
the groups. We no longer need special to special case the user or
list user for user_in_group() and thus no longer need to reset the
groups list when listing another user.
2011-07-20 11:58:45 -04:00
Todd C. Miller
906cede7ae
Don't rely on NULL since we don't include a header for it.
2011-07-20 10:15:59 -04:00
Todd C. Miller
27316e6c53
Add Polish translation from translationproject.org
2011-07-17 10:12:10 -04:00
Todd C. Miller
76f427e8d7
Fix build error when --without-noexec configure option is used.
2011-07-05 12:20:10 -04:00
Todd C. Miller
2bd874febc
Sync Chinese (simplified) PO files from translationproject.org
2011-06-20 08:30:10 -04:00
Todd C. Miller
26ec20f8b1
Add Danish translation from translationproject.org and add missing
...
Basque mo files.
2011-06-18 13:21:48 -04:00
Todd C. Miller
e95c7130d7
Add Basque translation and sync Finish and Ukranian translations.
2011-06-06 13:38:54 -04:00
Todd C. Miller
4f22a39803
Load plugins with RTLD_GLOBAL instead of RTLD_LOCAL. This fixes
...
problems with pam modules not having access to symbols provided by
libpam on some platforms. Affects FreeBSD and SLES 10 at least.
2011-06-06 10:53:58 -04:00
Todd C. Miller
750c0d2ebe
Regenerate .pot files for 1.8.2rc2
2011-06-04 18:27:59 -04:00
Todd C. Miller
e66169b3ed
Move nls targets to the top level Makefile so the paths in
...
the pot file are saner
2011-06-04 18:27:13 -04:00
Todd C. Miller
e8064e25dd
Add compiled version of sudo Finish translation
2011-06-04 10:14:41 -04:00
Todd C. Miller
3c9e5f28fc
Fix compressed io log corruption in background mode by using _exit()
...
instead of exit() to avoid flushing buffers twice.
Improved background mode support. When not allocating a pty, the
command is run in its own process group. This prevents write access
to the tty. When running in a pty, stdin is not hooked up and we
never read from /dev/tty, which results in similar behavior.
2011-05-31 12:49:22 -04:00
Todd C. Miller
1b67009ca1
Always allocate a pty when running a command in the background but
...
call setsid() after forking to make sure we don't end up with a
controlling tty.
2011-05-27 15:20:20 -04:00
Todd C. Miller
9b7cd235e7
README file that directs people to translationproject.org
2011-05-27 13:15:27 -04:00
Todd C. Miller
6fccd6bfda
Sync translations with TP
2011-05-27 12:53:05 -04:00
Todd C. Miller
38db44b80c
Include .mo files in sudo binary packags.
2011-05-27 10:17:34 -04:00
Todd C. Miller
47adbf8d33
Add simplified chinese translation
2011-05-27 07:54:52 -04:00
Todd C. Miller
c202c4e6d8
Add ukranian translation
2011-05-26 15:23:55 -04:00