Todd C. Miller
8bb1160624
Replace LIBMD with LIBCRYPTO display crypto/tls libs in summary.
...
We can only have one of either -lmd, -lgcrypt or -lcrypto so there
is no need to have more than one variable.
2023-02-22 08:49:33 -07:00
Todd C. Miller
0443d14578
Add checks for realpath(3) and a version from NetBSD for those without it.
2023-02-12 13:27:17 -07:00
Todd C. Miller
440d9649a8
Move initial values into AC_SUBST() where possible.
2023-02-21 10:17:24 -07:00
Todd C. Miller
7c6f373587
No need to AC_SUBST() standard autoconf variables.
2023-02-21 09:34:49 -07:00
Todd C. Miller
b8c13bbe89
Fix indentation of intercept file in summary output.
2023-02-19 09:21:39 -07:00
Todd C. Miller
58382028aa
Sudo 1.9.13p1
2023-02-16 10:17:32 -07:00
Todd C. Miller
42163ac0a9
Use m4_bmatch, m4_case does not support shell-style globbing.
2023-02-16 10:05:26 -07:00
Todd C. Miller
2feea9b2f6
Allow configure.ac to be processed by autoconf 2.69.
...
AC_PROG_CC_STDC is deprecated in autoconf 2.70 and above but it is
necessary for autoconf 2.69.
2023-02-16 09:46:07 -07:00
Todd C. Miller
d7080afe0e
Only use AC_SYS_YEAR2038 if it is defined.
...
Otherwise, use the method from 1.9.12.
GitHub issue #242
2023-02-16 07:21:05 -07:00
Todd C. Miller
defec5d46e
Add missing '[' to AS_IF() call.
...
Fixes GitHub issue #238 .
2023-02-14 14:24:28 -07:00
Todd C. Miller
2e1a73502e
Use AS_IF instead of if; then where possible.
2023-02-05 08:06:02 -07:00
Todd C. Miller
ffb09be49d
Add configure test for NSIG, _NSIG or __NSIG.
...
This is better than just defining NSIG in sudo_compat.h if it is
not defined since signal.h may not have been included.
2023-01-31 11:30:45 -07:00
Todd C. Miller
f65a51afdf
Try to link a simple shared object with -Wl,--no-undefined.
...
This only works for gcc-style compilers, which should not be a
problem. The source uses environ (FreeBSD) and errno (OpenBSD).
2023-01-20 12:30:33 -07:00
Todd C. Miller
7a64275a3d
Don't use -Wl,--no-undefined with the sanitizers/fuzzers.
...
It breaks linking when using -fsanitize with clang at least.
2023-01-19 19:40:35 -07:00
Todd C. Miller
f7265f5de2
Eliminate usage of obsolete 2-argument AC_CHECK_TYPE macro.
2023-01-19 13:59:05 -07:00
Todd C. Miller
9ddae66818
Add support for the struct kinfo_proc on Dragonfly BSD.
2023-01-19 13:22:32 -07:00
Todd C. Miller
d409ba67c6
Elminate the $OS variable, we can just use $host_os instead.
2023-01-19 13:22:31 -07:00
Todd C. Miller
cb56fd2edb
Need to link sudo and sudoers with -lutil on Dragonfly BSD.
...
It is safer to just search for setusercontext() in libc and libutil
instead of matching on the operating system.
2023-01-19 13:22:31 -07:00
Todd C. Miller
83b4cee98a
Add -Wl,--no-undefined to LDFLAGS if it is supported.
...
This will find missing symbols at build-time instead of run-time.
Don't use it on FreeBSD where environ is filled in by the dynamic loader.
We also need to pull in -llber with -lldap where possible (instead
of relying on DT_NEEDED) to avoid undefined symbol errors when
building with LDAP support.
2023-01-19 07:47:10 -07:00
Todd C. Miller
73c52e731a
Limit some of the hardening tests to compilers that define __GNUC__.
...
This should avoid false positives on other compilers.
2023-01-18 14:39:52 -07:00
Todd C. Miller
acee3ea6ef
Fix logic goof in 05781ba6f1f3, disable replacements when fuzzing.
...
Not the other way around.
2022-12-31 09:31:37 -07:00
Todd C. Miller
4b0dc2eecb
Substitute python plugin file name in sudo_plugin_python documentation.
...
Also use prefix for group plugin fallback path section in sudoers manual.
2022-12-30 13:38:40 -07:00
Todd C. Miller
3068ec000c
Avoid using our function replacements when fuzzing (where possible).
...
We don't want to fuzz the function replacements themselves as this
can skew the coverage reports.
2022-12-29 13:22:29 -07:00
Todd C. Miller
f6e0e87ba9
sudo 1.9.13
...
Document the changes to AIX plugins in docs/UPGRADE.md and regenerate
configure using the latest autoconf from git.
2022-12-26 10:47:51 -07:00
Todd C. Miller
206700c3f0
Use AIX-style shared libraries on AIX by default instead of SVR4-style.
...
This removes the need to use the -brtl linker flag which can cause
problems when there are both a .so and .a version of the same library
but with different versions. This was particularly problematic
when using the AIX freeware version of OpenSSL. The --with-aix-soname=svr4
option can be used to build SVR4-style shared libs instead.
2022-12-26 07:43:55 -07:00
Todd C. Miller
3d2082cdf3
Add SUDO_CHECK_NET_FUNC to check functions in the network libraries.
...
If a function is not found, check again with "-lsocket", "-linet",
"-lsocket -lnsl", or "-lresolv".
Also display network libs in final summary as well as the different
linker flags.
2022-12-06 16:09:26 -07:00
Todd C. Miller
2c97e7f471
Remove extraneous "(cached)" line when the -C option is used.
...
We do not need to call AC_CACHE_VAL() to ensure that a variable is
cached, its name just needs to match the pattern *_cv_*.
2022-12-06 13:47:03 -07:00
Todd C. Miller
1b76f76122
Use AC_PATH_PROGS_FEATURE_CHECK to find mandoc/nroff.
...
We don't use the NROFFPROG or MANDOCPROG any longer so no need
to set those.
2022-12-06 12:18:26 -07:00
Todd C. Miller
dd1eb1f6c5
Don't check for _sys_siglist if sys_siglist is found.
2022-12-06 10:05:03 -07:00
Todd C. Miller
fd6484917e
Fix check for sys_sigabbrev.
2022-12-06 08:55:44 -07:00
Todd C. Miller
29c36a3c1d
Skip test for __func__ on C99 and above, avoid extra _sys_signame test.
2022-12-05 19:26:57 -07:00
Todd C. Miller
38ffd03cd6
Move gettext checks to m4/gettext.m4
2022-12-05 19:26:50 -07:00
Todd C. Miller
12da6bd0ce
Move LDAP library checks to m4/ldap.m4 and make more tests cacheable.
2022-12-05 16:52:34 -07:00
Todd C. Miller
00e22508a7
Move OpenSSL/wolfSSL checks to m4/openssl.m4
2022-12-05 16:45:18 -07:00
Todd C. Miller
f515c238bc
Move PIE executable checks to m4/pie.m4
2022-12-05 12:34:12 -07:00
Todd C. Miller
4220e6631b
Move address sanitizer and fuzzer checks to m4/sanitizer.m4
2022-12-05 12:33:44 -07:00
Todd C. Miller
ea5668086c
Move symbol visibility checks to m4/visibility.m4
2022-12-05 12:33:42 -07:00
Todd C. Miller
5bf5a4e26c
Move hardening checks to m4/hardening.m4
2022-12-05 12:32:53 -07:00
Todd C. Miller
8718fc2083
Make cpp variadic arguments check into a macro and move to sudo.m4.
...
Also move the PVS-Studio.cfg generation to sudo.m4.
2022-12-05 09:47:21 -07:00
Todd C. Miller
16ae61dcd7
Use C23 [[__fallthrough__]] and [[__noreturn__]] attributes if supported.
...
If the C23 attributes are not supported, use gcc-style attributes
where possible.
2022-11-29 16:28:27 -07:00
Todd C. Miller
cfdcd96b63
Move the check for the fallthrough attribute outside the warnings block.
...
Use AX_APPEND_FLAG instead of addind to CFLAGS directly.
2022-11-29 16:04:14 -07:00
Todd C. Miller
0044893961
Use AC_SYS_YEAR2038 instead of setting _TIME_BITS by hand.
2022-11-16 19:29:22 -07:00
Todd C. Miller
03559d0770
Replace foo
in descriptions with 'foo'
2022-11-16 10:10:20 -07:00
Todd C. Miller
cc0615059f
Fix insufficient quoting in AC_CHECK_LIB() calls.
2022-11-16 10:22:28 -07:00
Todd C. Miller
bef72f76f6
Add -Wvla and -Walloca to --enable-warnings
2022-11-15 11:05:42 -07:00
Todd C. Miller
3cfba230c5
configure: only check for getauxval() if getentropy() is missing.
2022-11-11 11:04:58 -07:00
Todd C. Miller
28dbad3342
Remove checks for random() and lrand48(), they are no longer used.
...
Also remove duplicate checks for arc4random() and getentropy().
2022-11-11 09:37:49 -07:00
Todd C. Miller
3d0fcc0ff2
Skip check for cpp variadic macro support if the compiler supports C99.
2022-11-11 09:09:31 -07:00
Todd C. Miller
6b005e8114
HI-UX/MPP is based on OSF-1, not HP-UX
...
Completely untested.
2022-11-11 08:45:58 -07:00
Todd C. Miller
a142bc1830
Only check for utmps.h on HP-UX.
2022-11-11 08:32:41 -07:00