Todd C. Miller
ec32194152
Add ttyname test.
2013-04-10 09:39:49 -04:00
Todd C. Miller
159664ad78
No more timestamp.h
2013-04-01 14:56:54 -04:00
Todd C. Miller
b507f0a854
New Dutch translation for sudo and sudoers
...
New Turkish translation for sudo
From translationproject.org
2013-03-23 08:45:51 -04:00
Todd C. Miller
6bd8848608
Fix path to sudo.conf manuals; remove non-existant test2.err.ok
2013-03-18 15:29:40 -04:00
Todd C. Miller
5d7925b24e
Test setting disable_coredump to illegal value.
2013-02-20 15:48:53 -05:00
Todd C. Miller
e07280eeeb
Rename sample_group plugin to group_file.
...
Install group_file and system_group plugins by default.
2013-02-18 15:32:36 -05:00
Todd C. Miller
0c40e82c16
Add simple regress tests for sudo.conf parsing.
2013-02-15 14:42:10 -05:00
Todd C. Miller
7aae6bd6e3
Add line continuation support to sudo_parseln() and make it use
...
getline() instead of fgets() internally.
2013-02-07 10:56:01 -05:00
Todd C. Miller
c5816ca6ae
Add standalone sudo.conf manual page.
2013-02-05 11:43:02 -05:00
Todd C. Miller
479cd25b21
Add missing test files.
2013-01-24 12:05:33 -05:00
Todd C. Miller
db7ea4123a
Add test for visudo cycle check core dump; test case from Daniel Kopecek
2013-01-23 08:24:11 -05:00
Todd C. Miller
6bc3d4aed5
Use nss_search() to implement getgrouplist() where available. Tested
...
on Solaris and HP-UX. We need to include a compatibility header
for HP-UX which uses the Solaris nsswitch implementation but doesn't
ship nss_dbdefs.h.
2013-01-22 15:41:15 -05:00
Todd C. Miller
855a11af2b
Move signal code into its own source file and add sudo_sigaction()
...
wrapper that has an extra flag to check the saved_signals list to
only install the handler if the signal is not already ignored.
Bump plugin API version for the new front-end signal behavior.
2013-01-17 13:29:46 -05:00
Todd C. Miller
2632ec7e69
Move warn/error into common and make static builds work.
2012-11-25 09:34:40 -05:00
Todd C. Miller
c2c6616a0c
Move _sudo_printf from src/conversation.c to common/sudo_printf.c.
...
Add sudo_printf function pointer that is initialized to _sudo_printf()
instead of requiring a sudo_conv function pointer everywhere. The
plugin will reset sudo_printf to point to the version passed in via
the plugin open function. Now plugin_error.c can just call sudo_printf
in all cases. The sudoers binaries no longer need their own version
of sudo_printf.
2012-11-25 09:34:33 -05:00
Todd C. Miller
83dde2fbb6
Add os-specific initialization functions for solaris (workaround
...
setuid locale problem in Solaris 11) and openbsd (set malloc_options
if SUDO_DEVEL). Also move set_project() to solaris.c.
2012-11-11 07:11:22 -05:00
Todd C. Miller
4207589fe2
Add simple locale switching to make it easy to switch from the
...
user's locale to the sudoers locale without making excessive
setlocale() calls when we don't need to.
2012-11-08 15:37:43 -05:00
Todd C. Miller
475662aaa4
Refactor policy plugin interface code from sudoers.c into policy.c
2012-10-25 16:58:31 -04:00
Todd C. Miller
2b23d2b12c
Move expand_prompt() into its own source file for easier unit testing.
2012-10-23 14:27:52 -04:00
Todd C. Miller
0a7af23038
Make check.c independent of the underlying timestamp implementation.
2012-10-23 14:16:57 -04:00
Todd C. Miller
0fa33ccf0f
Split off timestamp functions into their own source file.
2012-09-27 10:21:13 -04:00
Todd C. Miller
883e0ec3cc
Split out implementation-specific back end code out of pwutil.c
...
into pwutil_impl.c. This will allow the main pwutil code to be
used for lookup methods other than getpw* and getgr*.
2012-09-21 16:25:01 -04:00
Todd C. Miller
2068d941b9
Add sssd.c
2012-09-04 09:07:33 -04:00
Todd C. Miller
8de12a2bcf
Add Vietnamese sudoers translation from translationproject.org
2012-09-01 17:00:49 -04:00
Todd C. Miller
4380a60a97
Add Vietnamese sudoers translation from translationproject.org
2012-09-01 13:10:04 -04:00
Todd C. Miller
ab7dda035a
Replace strsigname() with sig2str(), emulating it as needed.
2012-08-29 14:25:09 -04:00
Todd C. Miller
537dc94b9e
Use strsigname() to print signal names in the debug output.
...
If the system has no strsigname(), use our own.
2012-08-26 20:12:51 -04:00
Todd C. Miller
57f1c7fe05
Sync with translationproject.org and add Italian sudoers translation.
2012-08-17 09:56:44 -04:00
Todd C. Miller
ef33ee45d9
Sync with translationproject.org and add new Slovenian translation.
2012-08-10 13:07:53 -04:00
Todd C. Miller
602510f1bb
Generate a sed script file when munging *.mdoc or *.man instead of
...
passing sed expressions on the command line. Older seds do not
support \n in a replacement so generate and run a sed script instead.
2012-08-01 14:38:52 -04:00
Todd C. Miller
82c808c7ca
Remove pod versinons of HISTORY, CONTRIBUTORS and LICENSE as they
...
were not being kept in sync.
2012-07-29 14:17:57 -04:00
Todd C. Miller
336233c2e5
Add post-processing scripts to strip out login class, BSD auth,
...
SELinux and privilege set bits when they are not supported.
2012-07-26 13:50:26 -04:00
Todd C. Miller
90f2cfa589
Build .man.in and .cat files from .mdoc.in files.
...
Add new --with-man and --with-mdoc configure options.
2012-07-19 13:41:14 -04:00
Todd C. Miller
bcfeddc998
Rename foo.sym -> foo.exp
...
Remove foo.map from the repo and generate it on demand
Use a loader option file for HP-UX ld to explicitly export symbols
2012-06-20 12:58:16 -04:00
Todd C. Miller
2a83d1c6d5
Add regress test for symbol visibility.
2012-06-17 20:23:21 -04:00
Todd C. Miller
47abbb90a2
Don't use a map file for sudo_noexec.so since Solaris ld doesn't
...
allow '*' in the global section. The libtool export flag is now
added to LT_LDFLAGS instead of commenting/uncommenting lines.
2012-06-14 11:35:02 -04:00
Todd C. Miller
6f6b0dec6c
Use gcc's visibility attribute to specify when symbols are visible
...
or hidden, if available. If not available, use an ELF version
script if it is supported. If all else fails, fall back to using
libtool's -export-symbols.
2012-06-13 14:01:16 -04:00
Todd C. Miller
ca89eb59ea
Add m4/ax_check_compile_flag.m4 and m4/ax_check_link_flag.m4
2012-05-22 13:26:02 -04:00
Todd C. Miller
63e1ab974e
add system_group plugin
2012-05-10 10:01:09 -04:00
Todd C. Miller
4c36371ee1
Add German translation for sudo
...
Add Croatian translation for sudoers
2012-04-19 11:54:15 -04:00
Todd C. Miller
8f8ede3d25
New Croatian and Galician translations from translationproject.org
2012-04-13 14:15:22 -04:00
Todd C. Miller
38ea65203a
Move ttysize.c to common so sudoreplay can use it.
2012-04-06 16:41:08 -04:00
Todd C. Miller
a142d780c7
Add Swedish sudo and sudoers translations from translationproject.org
2012-03-28 09:56:26 -04:00
Todd C. Miller
37770ecf1e
Initial cut at a hooks implementation. The plugin can register
...
hooks for getenv, putenv, setenv and unsetenv. This makes it
possible for the plugin to trap changes to the environment made by
authentication methods such as PAM or BSD auth so that such changes
are reflected in the environment passed back to sudo for execve().
2012-03-07 16:35:42 -05:00
Todd C. Miller
1504256134
Add Vietnamese sudo translation from translationproject.org
2012-03-05 09:42:52 -05:00
Todd C. Miller
c7635121d8
secure_path.c is in common, not compat
2012-03-01 13:05:43 -05:00
Todd C. Miller
5c970b2179
New Lithuanian sudoers translation from translationproject.org
2012-02-25 13:42:26 -05:00
Todd C. Miller
415454ff59
Relax the user/group/mode checks on sudoers files. As long as the
...
file is owned by the right user, not world-writable and not writable
by a group other than the one specified at configure time (gid 0
by default), the file is considered OK. Note that visudo will still
set the mode to the value specified at configure time.
2012-02-22 13:04:03 -05:00
Todd C. Miller
8c1d8a7b15
Make a copy of the struct passwd in exec_setup() to make sure nothing
...
in the policy init modifies it.
2012-02-06 10:56:39 -05:00
Todd C. Miller
2a2d2c4cd5
Add sudo Spanish translation from translationproject.org
2012-02-03 09:15:14 -05:00