Commit Graph

6862 Commits

Author SHA1 Message Date
Todd C. Miller
05e53aea0f Use the correct the sudoers policy symbol names and undo an editor
goof committed when adding max_groups to sudo.conf.
2013-02-20 13:54:31 -05:00
Todd C. Miller
064cb0ceda For "sudo -l" start a new line if the runas list changes to make
the output easier to read.
2013-02-20 10:47:31 -05:00
Todd C. Miller
d00ad3bbe2 For "sudo -l" and "sudo -ll" only print the runas info for subsequent
commands in a list if the runas info has changed.  If we have new
runas info, print out the tags again so as to be less confusing to
the user.  For "sudo -ll" set the line continuation indent to 8.
2013-02-19 16:29:17 -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
b9159ecb26 Add maxseq sudoers option to limit the max number of I/O log files. 2013-02-18 15:06:23 -05:00
Todd C. Miller
618871a331 Log lines and columns in the iolog file. 2013-02-16 11:12:48 -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
790304789e Always display the I/O plugin version as long as its open functions
doesn't return an error.  Previously it was only displayed if the
plugin open returned 1.
2013-02-15 12:31:49 -05:00
Todd C. Miller
791b751425 Use sysconf(_SC_LOGIN_NAME_MAX) to find max username length instead
of poking around in struct utmpx.
2013-02-15 10:20:21 -05:00
Todd C. Miller
2d9da65881 #include "sudo_usage.h" not <sudo_usage.h> so we get the one in the
build directory and not the src dir when using a separate build
directory.
2013-02-15 08:57:21 -05:00
Todd C. Miller
0f0ef228a5 If a line was longer that 0x80000000 the bit hack to round to the
next power of two would roll over to zero.
2013-02-14 16:34:13 -05:00
Todd C. Miller
d837700341 Use max_groups in front-end and plugin. 2013-02-14 15:52:27 -05:00
Todd C. Miller
35548ae4e3 Pass max_groups to plugin in settings list. 2013-02-14 15:18:10 -05:00
Todd C. Miller
67fed118b6 Add max_groups setting to sudo.conf (currently unused) and remove
unused return value from setters.
2013-02-14 13:34:33 -05:00
Todd C. Miller
c715df98fa Reorganize configure options 2013-02-12 16:43:29 -05:00
Todd C. Miller
6871b25df5 Add Sudo 1.8.6p7 2013-02-11 15:57:36 -05:00
Todd C. Miller
a72c8d7ac5 Sync with autoconf 2.68 2013-02-10 14:34:55 -05:00
Todd C. Miller
d18e050458 Remove obsolete OS notes and move build requirements to INSTALL. 2013-02-10 09:45:06 -05:00
Todd C. Miller
987d62ec55 Sort elements of the settings, user_info and command_info lists. 2013-02-08 14:44:22 -05:00
Todd C. Miller
6ba6a454e2 Remove trailing white space 2013-02-08 14:40:43 -05:00
Todd C. Miller
2e08777f25 Store the session ID in the tty ticket file too. A tty may only
be in one session at a time so if the session ID doesn't match we
ignore the ticket.
2013-02-08 10:43:14 -05:00
Todd C. Miller
af0bb55283 Move tzset() call from sudoers plugin to sudo front end. 2013-02-07 14:31:48 -05:00
Todd C. Miller
74881843e1 Mention line continuation 2013-02-07 14:08:54 -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
2d6095420a Fix memory leak in error path; found by llvm checker 2013-02-06 16:38:31 -05:00
Todd C. Miller
11e04d30dd Remove useless store detected by llvm checker. 2013-02-06 16:35:19 -05:00
Todd C. Miller
6b09c76a20 Sudo now stores its libexec files in a "sudo" subdirectory instead
of in libexec itself.  For backwards compatibility, if the plugin
is not found in the default plugin directory, sudo will check the
parent directory default directory ends in "/sudo".
2013-02-06 14:06:51 -05:00
Todd C. Miller
becc5fca7c Add missing __dso_public to plugin structs so they are exported. 2013-02-06 13:08:48 -05:00
Todd C. Miller
fbb8ea5042 Mention that sudoers has its own plugins too. 2013-02-06 09:30:49 -05:00
Todd C. Miller
b51d1a9f67 Correct last change date. 2013-02-05 16:14:05 -05:00
Todd C. Miller
14bf23c4a2 Remove duplicated sudo.conf info in the sudo, sudoers and sudo_plugin
manuals and cross-reference the new sudo.conf manual.
2013-02-05 16:12:39 -05:00
Todd C. Miller
5debfeeaf7 Fix typos 2013-02-05 16:10:16 -05:00
Todd C. Miller
f6e61640d2 Fix some typos. 2013-02-05 16:09:26 -05:00
Todd C. Miller
c5816ca6ae Add standalone sudo.conf manual page. 2013-02-05 11:43:02 -05:00
Todd C. Miller
f0fdf41d2a add group_source example 2013-02-05 11:42:46 -05:00
Todd C. Miller
0bd79612b1 Use PLUGINDIR in the manuals and fix a typo in the sample sudo.conf. 2013-02-05 10:56:58 -05:00
Todd C. Miller
380fa828dc Sync with translationproject.org 2013-02-05 10:53:59 -05:00
Todd C. Miller
e96d583045 Sync with translationproject.org 2013-02-03 13:46:48 -05:00
Todd C. Miller
78ca828a3c Sync with translationproject.org 2013-02-01 16:00:50 -05:00
Todd C. Miller
9a76946cd5 Clarify ttyname changes. 2013-01-31 16:06:49 -05:00
Todd C. Miller
5fb8749bf6 Add 1.8.6p6 2013-01-31 11:45:33 -05:00
Todd C. Miller
23649bef16 Remove ttyname() fall back code on systems where we can query the
kernel for the tty device via /proc or sysctl().  If there is no
controlling tty, it is better to just treat the tty as unknown
rather than to blindly use what is hooked up to std{in,out,err}.
2013-01-31 11:05:56 -05:00
Todd C. Miller
630b47e22f Add group_source setting in sudo.conf to allow the admin to specify
how a user's groups are looked up.  Legal values are static (just
the kernel list from getgroups), dynamic (whatever the group database
includes) and adaptive (only use group db if kernel group list is
full).
2013-01-27 13:53:11 -05:00
Todd C. Miller
8ab7cf61bd Pass back exec_background to front end if it is enabled in sudoers. 2013-01-27 13:45:35 -05:00
Todd C. Miller
9ed1f0287e Mention that exec_background is for 1.8.7 and higher only. 2013-01-27 13:43:02 -05:00
Todd C. Miller
479cd25b21 Add missing test files. 2013-01-24 12:05:33 -05:00
Todd C. Miller
c2e678d73a Add regress test for bug 361 2013-01-24 11:57:38 -05:00
Todd C. Miller
f2beaaa89f Add __dso_public to extern declaration of declaration to match
actual definition.
2013-01-24 09:01:03 -05:00
Todd C. Miller
210ab24499 Add 1.8.6p5 2013-01-24 07:44:10 -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