summaryrefslogtreecommitdiff
path: root/plugins/group_file
Commit message (Collapse)AuthorAgeFilesLines
* Add adminconfdir and --enable-adminconf to set it.Todd C. Miller2023-05-021-1/+2
| | | | | | Configuration paths in sudo are now a colon-separated list of files with the adminconfdir instance first (if enabled), followed by a sysconfdir instance.
* Keep group file open until the call to myendgrent().Todd C. Miller2022-11-221-2/+3
| | | | This restores the previous behavior.
* Eliminate a few harmless dead stores.Todd C. Miller2022-11-221-1/+1
| | | | Quiets warnings from Infer.
* Refactor code to open passwd/group file and add setpassent/setgroupent.Todd C. Miller2022-11-221-25/+30
| | | | | | This makes the "stayopen" semantics match the system passwd/group functions. The getpwent/getgrent functions now open the database if it is not already open.
* Fix typos found by codespell 2.2.1.Todd C. Miller2022-09-281-1/+1
|
* Rename SSP_(C|LD)FLAGS -> HARDENING_(C|LD)FLAGSTodd C. Miller2022-04-011-6/+6
|
* Add check-verbose Makefile target that runs tests in verbose mode.Todd C. Miller2022-03-021-0/+2
|
* Move autoconf auxiliary files to the scripts directory.Todd C. Miller2021-04-061-1/+1
|
* Add a new "fuzz" target that executes the fuzzers for 8192 runs each.Todd C. Miller2021-03-181-0/+2
| | | | To run indefinately, set FUZZ_RUNS=-1, e.g. "make FUZZ_RUNS=-1 fuzz"
* Rename "fuzz" makefile target to "check-fuzzer".Todd C. Miller2021-03-181-2/+2
| | | | | | It's purpose is to run the fuzzers are part of a normal "make check" to avoid bit rot, not to perform a fuzzer run. The fuzz_logsrvd_conf fuzzer was not wired up to "make check" previously.
* Add clean rules to .PHONY target.Todd C. Miller2021-02-191-0/+2
|
* Add install-fuzz Makefile target to install the fuzzers and seed corpus.Todd C. Miller2021-02-181-0/+2
| | | | | The FUZZ_DESTDIR make variable needs to be set in the environment or on the command line.
* Add fuzz Makefile target and run fuzzer corpus in make check.Todd C. Miller2021-02-081-0/+2
|
* Remove the --force option from the cppcheck args, it causes errors.Todd C. Miller2021-01-061-1/+1
|
* Check the return value of fcntl() when setting FD_CLOEXEC.Todd C. Miller2021-01-061-4/+14
| | | | | This should never fail unless the fd is invalid. Problem reported by Matthias Gerstner of SUSE.
* Minor fixes pointed out by cppcheck.Todd C. Miller2021-01-022-2/+2
| | | | Also add compareBoolExpressionWithInt to suppression list.
* Apply Google inclusive language guidelines.Todd C. Miller2020-10-301-1/+1
| | | | Also replace backwards with backward.
* Rename __dso_public -> sudo_dso_public and move to config.h.Todd C. Miller2020-08-122-2/+2
|
* Include string.h unconditionally and only use strings.h for strn?casecmp()Todd C. Miller2020-05-182-9/+2
| | | | | In the pre-POSIX days BSD had strings.h, not string.h. Now strings.h is only used for non-ANSI string functions.
* We no longer need to include headers we don't use for sudo*.h files.Todd C. Miller2020-05-183-9/+0
| | | | | | Previously we needed to include headers required by the various sudo*h files. Now those files are more self-sufficient and we should only include headers needed by code in the various .c files.
* Use EXIT_SUCCESS and EXIT_FAILURE more consistently.Todd C. Miller2020-02-081-3/+3
|
* Move some scripts from the top level src dir to a scripts dir.Todd C. Miller2020-02-061-2/+3
|
* Add abs_top_srcdir and abs_top_builddir and use them.Todd C. Miller2020-01-201-4/+7
| | | | | Configure provides absolution versions of srcdir, builddir, top_srcdir and top_builddir. We can use these instead of calling pwd.
* Using "libtool --clean" to remove regular files is slow.Todd C. Miller2020-01-181-2/+2
| | | | We only need to use libtool's clean mode to remove files created by libtool.
* Sync with argument handling in group_plugin.cTodd C. Miller2019-11-191-5/+7
|
* We haven't needed -I$(top_srcdir) for a long time.Todd C. Miller2019-11-021-3/+3
|
* Add depend target to all Makefile.in files.Todd C. Miller2019-10-211-0/+5
|
* Rename sudo_strtoid() to sudo_strtoidx() and add simplified sudo_strtoid()Todd C. Miller2019-10-201-1/+1
|
* Replace non-essential strncpy() calls.Todd C. Miller2019-07-301-2/+4
|
* Rename PLUGINDIR -> plugindirTodd C. Miller2019-07-031-1/+1
|
* Add SPDX-License-Identifier to files.Todd C. Miller2019-04-294-0/+8
|
* Convert PVS-Studio comment to ANSI C.Todd C. Miller2018-10-263-6/+12
|
* Fix some mangled text in the license block.Todd C. Miller2018-10-261-1/+0
|
* Pass --sourcetree-root to pvs-studio and don't check sudo_noexec.c.Todd C. Miller2018-10-221-3/+3
| | | | | | Since we don't auto-generate dependencies for sudo_noexec.c we can't easily check it from outside the source tree. This is not a problem as it just contains stub functions.
* Add pvs-studio target and associated production rules.Todd C. Miller2018-10-211-4/+36
|
* Add comments in .c files so PVS-Studio will check them.Todd C. Miller2018-10-213-0/+9
|
* update my email to Todd.Miller@sudo.wsTodd C. Miller2017-12-034-4/+4
|
* Remove pointless subshells in targets that simply change the directoryTodd C. Miller2017-07-121-2/+2
| | | | | and execute a command. The command is already run in a shell so there is no need to execute a subshell in this case.
* Add ASAN_CFLAGS and ASAN_LDFLAGS and use -Wc prefix in ASAN_LDFLAGSTodd C. Miller2016-11-151-4/+8
| | | | | to prevent libtool from strippign them out. Avoid using ASAN flags when building sudo_noexec.so.
* Only remove backup files as part of "make uninstall" when INSTALL_BACKUPTodd C. Miller2016-07-081-1/+2
| | | | is set.
* Only keep backups of installed files on HP-UX where you cannotTodd C. Miller2016-07-081-1/+2
| | | | unlink a shared library that is in use.
* Fold lines at 80 characters for the clean: targetTodd C. Miller2016-06-131-1/+2
|
* Cast the return value of fcntl() to void when setting FD_CLOEXEC.Todd C. Miller2016-05-051-3/+3
| | | | Coverity CID 104075, 104076, 104077.
* No need to have version macros for hooks, callbacks and the sudoersTodd C. Miller2015-09-092-4/+4
| | | | | | group plugin. We can just use the main sudo API macros. The sudoers group plugin macros are preserved for source compatibility but are not documented.
* There's no need to conditionalize the #include <unistd.h>, we requireTodd C. Miller2015-07-021-3/+1
| | | | a POSIX system.
* Only include stddef.h where it is needed.Todd C. Miller2015-06-203-3/+0
|
* We require ANSI C so stop using the obsolete STDC_HEADERS.Todd C. Miller2015-06-192-16/+4
|
* Use strtok_r() instead of strtok()Todd C. Miller2015-06-192-3/+7
|
* Remove obsolete memory.h include.Todd C. Miller2015-06-182-6/+0
|
* Allow "make LIBTOOL=/path/to/libtool" to work properly.Todd C. Miller2015-06-181-8/+11
|