Todd C. Miller
17514b55ea
Add support for multiple '*' in env_keep, env_check and env_delete
...
entries.
2017-05-12 10:02:17 -06:00
Todd C. Miller
e51831fab3
Be clear that #includedir diverts control to the files in the
...
specified directory and, when parsing of those files is complete,
returns control to the original file. Bug #775
2017-05-08 13:55:02 -06:00
Todd C. Miller
8468f13c69
Move syslog_maxlen to the "Integers" section. Move syslog_goodpri and
...
syslog_badpri to the "Strings at can be used in a boolean context" section.
2017-05-03 10:32:21 -06:00
Todd C. Miller
d9bfaa386e
Fix a pasto that resulted in an extra (empty) syslog_goodpri list entry.
2017-05-03 10:24:12 -06:00
Todd C. Miller
0b81e0b195
Try to make it clear that when match_group_by_gid is enabled, groups
...
in sudoers are looked up by group name instead of group ID. This
doesn't usually cause problems, but if there are conflicting group
entries (for example, from a local /etc/group file and an LDAP or
AD group database), whether the group is resolved by name or ID can
be used to work around conflicts.
2017-04-11 16:56:04 -06:00
Todd C. Miller
272a9c8e9b
Document that commands matched by "sudo ALL" are not affected by
...
fdexec.
2017-03-27 11:10:18 -06:00
Todd C. Miller
7f26338071
Mention that iolog_user is useful for NFS.
2017-03-24 15:36:03 -06:00
Todd C. Miller
b3af85ddc8
Add restricted_env_file which is like env_file but subject to the
...
same restrictions as the user's own environment.
2017-03-22 13:39:25 -06:00
Todd C. Miller
8d57491dc1
Add PERM_IOLOG so we can create I/O log files on an NFS-mounted
...
filesystem where root is remapped to an unprivileged user.
2017-03-21 13:41:14 -06:00
Todd C. Miller
c4e703696a
Add iolog_flush option.
2017-03-20 10:25:58 -06:00
Todd C. Miller
8c8d078f66
Don't allow the user to specify an I/O log file mode that sudo can't
...
read or write to. I/O logs must always be readable and writable
by the owner.
2017-03-17 10:56:17 -06:00
Todd C. Miller
4bdbc6b290
Make it clear that I/O logs will be complete even if the command
...
run by sudo is terminated by a signal. The I/O log buffering just
prevents the logs from being displayed in real-time as the command
is running.
2017-03-14 09:11:56 -06:00
Todd C. Miller
e5dee1557e
Add NOTBEFORE and NOTAFTER command options similar to what is
...
already available in LDAP.
2017-02-18 15:35:48 -07:00
Todd C. Miller
c86a6a23ad
Add a command line option to specify the command timeout, as long
...
as sudoers does not specify a shorter time limit.
2017-02-16 09:58:18 -07:00
Todd C. Miller
24cdbb8de1
Split out tags again so they must precede the command and not allow
...
them to be mixed in with options.
2017-02-14 15:56:34 -07:00
Todd C. Miller
3980f1531b
Add support for command timeouts in sudoers. After the timeout,
...
the command will be terminated.
2017-02-14 15:56:34 -07:00
Todd C. Miller
4f9dcd7264
Merge command tags, SELinux type/role and Solaris privs settings
...
into "command options". This relaxes the order of things so tags
and other options can be interspersed.
2017-02-14 15:56:34 -07:00
Todd C. Miller
3742f7a46e
Add ignore_unknown_defaults flag to ignore unknown Defaults entries
...
in sudoers instead of producing a warning.
2017-02-06 05:41:57 -07:00
Todd C. Miller
413e1100b8
Add new fdexec sudoers setting to allow choose whether execve() or
...
fexecve() is used.
2017-01-22 18:56:16 -08:00
Todd C. Miller
34ba901baa
Fix documentation bug, the contents of env_file have never been
...
subject to env_keep or env_check. However, variables are only added
if they have not already been preserved.
2017-01-17 10:10:47 -07:00
Todd C. Miller
57933a8ff3
Safer example for rule that can change non-root passwords. GNU
...
getopts allows options to follow arguments so we need to be able
to deny things like "passwd root -q". From Paul "Joey" Clark.
Bug #772
2017-01-17 08:55:40 -07:00
Todd C. Miller
00b6be9dfa
Allow syslog priority to be negated or set to "none" to disable
...
logging successes or failures.
2016-11-30 16:26:10 -07:00
Todd C. Miller
2b020c9f17
Pass iolog mode, group and user from policy plugin to I/O log plugin.
2016-11-07 10:19:04 -07:00
Todd C. Miller
271a07ff00
Make the I/O log file/dir permissions and owner configurable.
2016-10-29 12:45:55 -06:00
Todd C. Miller
6fa59b7416
There are now 14 tag values, not 10. Don't bother mentioning the
...
number since it keeps increasing. Bug #759
2016-10-19 07:33:07 -06:00
Todd C. Miller
44c2679f83
Add syslog_maxlen to control the max size of syslog messages.
2016-10-18 15:51:47 -06:00
Todd C. Miller
dba28a945c
Mention that match_group_by_gid has no effect when sudoers is stored
...
in LDAP.
2016-08-31 12:29:54 -06:00
Todd C. Miller
edcb137f60
match_group_by_gid is only available in sudo 1.8.18 and above
2016-08-30 14:37:57 -06:00
Todd C. Miller
c57979bfb6
Document match_group_by_gid
2016-08-30 14:35:16 -06:00
Todd C. Miller
ed18d0d5f8
Make the behavior when we cannot write to a log or audit file
...
configurable. File log failures are ignored by default for consistency
with syslog. Audit errors are ignored by default to allow the admin
to fix the issue. I/O log file errors are still fatal by default
since if I/O logging is activated it is usually to have an audit trail.
Bug #751
2016-08-17 07:22:51 -06:00
Todd C. Miller
a08ea1b14d
Set runas_pw early and adjust runaslist_matches() to deal. Since
...
we now set runas_default early there is no need to call update_defaults
with SETDEF_RUNAS after sudoers has been parsed.
2016-08-10 10:56:05 -06:00
Todd C. Miller
56ead73886
Load sudoers group plugin via an early callback.
2016-08-09 13:14:31 -06:00
Todd C. Miller
d17bc132de
Document that fqdn, runas_default and sudoers_locale are parsed early.
2016-08-09 10:26:02 -06:00
Todd C. Miller
c6b41b1657
Setting timestamp_timeout less than zero only lasts until the
...
next reboot. Adapted from a RedHat patch.
2016-05-31 12:57:08 -06:00
Todd C. Miller
d25500afa8
Document that you need to preserve EDITOR and/or VISUAL for env_editor
...
to be useful.
2016-05-13 12:02:23 -06:00
Todd C. Miller
ec37504dfb
Document the race with sudoedit_checkdir in 1.8.15.
2016-01-20 11:00:05 -07:00
Todd C. Miller
de0208a01b
Make sudoedit_checkdir the default and update the documentation accordingly.
2016-01-19 14:16:25 -07:00
Todd C. Miller
7f8a29dfc0
Add "I/O LOG FILES" section to the manual and move many of the
...
details from the log_input and log_output descriptions to it.
2016-01-16 16:47:42 -07:00
Todd C. Miller
ad8c96403d
Use "Nm sudoers" when talking about the plugin and "Em sudoers" when
...
talking about the sudoers file.
2016-01-16 16:46:17 -07:00
Todd C. Miller
5a77989a33
Add support for matching the entire netgroup tuple (user, host, domain).
2016-01-12 14:59:44 -07:00
Todd C. Miller
68c1073fe5
Rewritten sudoedit_checkdir support that checks all the dirs in the
...
path and refuses to follow symlinks in writable directories.
This is a better fix for CVE-2015-5602.
Adapted from a diff by Ben Hutchings. Bug #707
2016-01-10 18:31:29 -07:00
Todd C. Miller
b20977d445
Add support for using fexecve() if supported on commands that are
...
checksummed.
2016-01-04 10:35:18 -07:00
Todd C. Miller
a6f8994a59
Document the names of the I/O log files and mention buffering.
...
Document that I/O logs are in gzip format by default.
2015-12-11 10:04:17 -07:00
Todd C. Miller
96201a275e
Document the race condition between the digest check and command
...
execution.
2015-12-06 15:34:53 -07:00
Todd C. Miller
79be007bd6
Use https in urls.
2015-11-20 10:36:53 -07:00
Todd C. Miller
7761af6d7e
Add always_query_group_plugin
2015-10-24 05:43:07 -06:00
Todd C. Miller
c50cead833
Add directory writability checks for sudoedit.
2015-10-23 14:04:35 -06:00
Todd C. Miller
6b81f0b88c
The section is now called "EXEC and NOEXEC" and it is above, not
...
below.
2015-09-28 16:48:20 -06:00
Todd C. Miller
7b7db55db9
Adjust set_logname description to new behavior when any of LOGNAME,
...
USER or USERNAME are preserved.
2015-09-25 11:19:28 -06:00
Todd C. Miller
824021b51b
Add explicit mention of sudo's netgroup semantics since they differ
...
from most other netgroup consumers.
2015-09-21 16:04:59 -06:00