Todd C. Miller
b7e6d04907
When building up the cmndspec, add the actual command member last.
...
This simplifies the logic regarding the SETENV tag and alsomakes
"out of memory" cleanup simpler.
2018-05-16 10:27:28 -06:00
Todd C. Miller
3ca0882d14
Sudo "ALL" implies the SETENV tag.
2018-05-16 10:01:52 -06:00
Todd C. Miller
93eec5fb9f
Do not leak struct sudo_command when the command is ALL.
...
Coverity CID 185602.
2018-05-14 13:47:00 -06:00
Todd C. Miller
f9be3a48a2
Simplify the nss interface such that each sudoers provider fills
...
in a per-nss list of userspecs and defaults instead of using separate
lookup and list functions. This makes it possible to have a single
implementation of the code for sudoers lookup and listing.
2018-05-14 09:05:03 -06:00
Todd C. Miller
71e98d9493
Include parse.h in sudoers.h since it will soon be required.
2018-05-14 09:05:02 -06:00
Todd C. Miller
cc3428398a
Parse "ALL" as a command correctly.
2018-05-14 08:35:48 -06:00
Todd C. Miller
6da40a7b5b
Fix typo in strcmp(), we are comparing var not val.
2018-03-23 09:54:52 -06:00
Todd C. Miller
5c36f9dec3
Initial support for adding comments that will be emitted when
...
sudoers is formatted. Currently adds a comment for the source
sudoRole when converting from ldif -> sudoers.
2018-03-04 07:03:43 -07:00
Todd C. Miller
8c7f3e791c
Add missing support for converting LOG_INPUT/LOG_OUTPUT tags and
...
expand support for NOMAIL tags.
2018-03-02 11:12:14 -07:00
Todd C. Miller
e96398cac2
Avoid changing the order of non-negated hosts and commands.
...
We still put negated hosts/commands at the end of the list.
2018-03-02 10:58:50 -07:00
Todd C. Miller
120bb6de7f
rename ldap_common.c -> ldap_util.c
2018-02-28 14:24:33 -07:00