2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-21 17:37:16 +00:00

113 Commits

Author SHA1 Message Date
Todd C. Miller
839be2a417 Update to protobuf-c 1.5.2 2025-08-14 16:55:00 -06:00
Todd C. Miller
55d3c99c4e Add a way to override pp_rpm_arch when building rpms
This will be used to build x86_64_v2 packages for Alma Linux.
2025-07-21 20:29:52 -06:00
Todd C. Miller
e5d953f339 Don't assume RHEL major version is only a single digit
Fixes handling of RHEL 10 and higher.
2025-07-08 19:17:57 -06:00
Todd C. Miller
57f67f67ff Fix typo 2025-06-08 16:44:34 -06:00
Todd C. Miller
eae70b05cf Add hyphen/dash checks 2025-02-27 19:33:18 -07:00
Todd C. Miller
c2e77b7133 Add check_man script to check for man page warnings. 2025-02-27 08:21:22 -07:00
Todd C. Miller
46831d6ef2 build_pkgs: adapt to work with a git repo 2025-01-04 08:20:59 -07:00
Todd C. Miller
b52ef1fbbb Remove unused -b option 2025-01-04 07:45:07 -07:00
Todd C. Miller
355c82a1d5 Update to libtool 2.5.3 2025-01-03 17:38:29 -07:00
Todd C. Miller
e13163ce0a Add markdown mode for use with the sudo web site. 2025-01-01 15:07:57 -07:00
Todd C. Miller
a3c1cbd881 Use Text::Wrap::fill() for ChangeLog body, not wrap(). 2024-12-27 12:43:16 -07:00
Todd C. Miller
52772ae6eb Fix a syntax error in the systemd sudo-logsrvd.postinst script:
sudo-logsrvd.postinst: 120: [: -eq: unexpected operator
2024-05-18 19:31:11 -06:00
Todd C. Miller
52586b0db6 Fix check for libaudit package on Debian-based systems.
Newer systems only have /usr/lib with /lib as a symbolic link.
2024-05-18 19:14:11 -06:00
Todd C. Miller
9b073f3124 Using $< in a non-suffix rule context is a GNU make extension. 2024-02-21 13:01:14 -07:00
Todd C. Miller
69a024304f Restore the ability to override default configure settings.
The user-specified options must go last...
2023-12-30 11:21:08 -07:00
Todd C. Miller
b5a3513fb9 Handle Debian GNU Hurd 2023-12-28 18:45:30 -07:00
Todd C. Miller
c3ac12297a Regenerate with the autoconf 2.72d snapshot. 2023-11-30 16:24:05 -07:00
Todd C. Miller
0f40753d46 Update PolyPkg from upstream. 2023-11-08 18:46:03 -07:00
Todd C. Miller
0497bde983 Quote $osversion since it may include whitespace. 2023-11-08 08:16:57 -07:00
Todd C. Miller
002e22f846 Add --configure-only option to quit after the configure run.
This will be used to avoid building the entire package when we just
want the 32 or 64 bit sudo_intercept.so and sudo_noexec.so.
2023-08-01 11:05:59 -06:00
Todd C. Miller
8e22ede2a6 Parse --disable-python in mkpkg and don't override -m32 for Solaris.
We want to be able to build without python and to specify the memory
model when building 32-bit .so's for Solaris.
2023-08-01 09:36:39 -06:00
Todd C. Miller
e2243e3737 Add basic support for remote power on/off via net-snmp. 2023-04-19 17:48:47 -06:00
Todd C. Miller
f95c9f839c Regenerate with the autoconf 2.72c snapshot. 2023-03-27 09:55:41 -06:00
Todd C. Miller
f5d0b7abf7 Remove portable getcwd.c, nothing uses it anymore.
Any operating system supported by sudo already includes getcwd(3).
2023-03-16 15:01:41 -06:00
Todd C. Miller
fc253048f5 Add LDAP-specific innetgr() implementation.
Wheh netgroup_base is set we now do out own netgroup lookups using
LDAP.  Previously, LDAP was queried directly to get a list of the
netgroups the user belongs to but other netgroups queries went
through innetgr(3).  This makes it possible to use netgroups
in LDAP sudoers on systems that don't have an innetgr() function.
GitHub issue #251.
2023-03-10 10:05: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
439f0734f5 Sudo-specific executables moved to /usr/libexec/sudo starting in
Debian 12 (Bookworm) and Ubuntu 22.04 (Jammy Jellyfish).
Previously, they were stored in /usr/lib/sudo.
2023-02-15 17:18:39 -07:00
Todd C. Miller
23237bb006 No longer need to treat Rocky or Alma Linux specially.
We now treat them the same as RHEL.
2023-01-30 07:32:05 -07:00
Todd C. Miller
b257df55da Store conf hash in vm_servers instead of vmid.
Add a shutdown command fallback to the conf file.
2023-01-27 14:47:32 -07:00
Todd C. Miller
53389b5743 Recognize Alma Linux and Rocky Linux (Open Source RHEL clones) 2023-01-27 14:44:45 -07:00
Todd C. Miller
fd0021ee5c Regen with latest autoconf git. 2023-01-27 14:44:45 -07:00
Todd C. Miller
94eafd2f08 Fix determination of the number of CPU cores on Linux. 2023-01-27 10:31:12 -07:00
Todd C. Miller
733303ed96 Add --build-only flag to skip building packages. 2023-01-21 09:43:15 -07:00
Todd C. Miller
ec79bbc8e0 Suport building packages on DragonFly BSD. 2023-01-20 15:08:31 -07:00
Todd C. Miller
0010c98613 Pass the name to the config.cache file to the build script.
If --cache-file is not specified, no config.cache file will be used.
Add an "omit_artifacts" setting for platforms where we don't publish
artifacts.
2023-01-20 10:30:19 -07:00
Todd C. Miller
adf2a432af Use the POSIX shell "command -v" instead of "which" to find programs.
Fix false detection of init.d/service status.
2022-12-27 12:28:53 -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
702f21f7f6 Remove anything after whitespace in MANIFEST when building tarball.
This is consistent with how sudo's Makefile builds the tarball.
2022-12-26 08:13:43 -07:00
Todd C. Miller
31684dccc0 Defer installing the SIGCHLD handler until after non-job commands run.
Lock the socket dir to avoid races in open_persistent_connection().
Also avoid using "ssh -f" since that may return before the socket is created.
Strip carriage returns from log when running in a pty.
2022-12-07 07:44:44 -07:00
Todd C. Miller
a44a005f0b Convert from using IPC::Open3 to IPC::Run.
Run tests in a pty so check_ttyname works as expected.
Explicitly set short command line options letters in GetOptions().
Add a debug flag to help see what is going on internally.
Add hook for die() to kill running jobs when we are dying.
SSH_AGENT_PID will not be present if the agent is forwarded.
In close_persistent_connections() only close active connections.
2022-11-30 11:19:44 -07:00
Todd C. Miller
63e58cbbec The distributed package build script I use to build all sudo packages.
This is not included in the release tarball because it is of limited
use to other people.
2022-11-28 12:46:32 -07:00
Todd C. Miller
7ac13204f2 Use clang, not /usr/bin/cc on FreeBSD and macOS.
While /usr/bin/cc _is_ clang on those platforms, some static analyzers
get confused if we don't run it as clang.
2022-11-22 07:21:01 -07:00
Todd C. Miller
981cc2f8e3 Better matching of macOS version to SDK path. 2022-11-17 14:26:55 -07:00
Todd C. Miller
920d384941 Regenerate with the autoconf 2.72a pre-release. 2022-11-16 10:26:08 -07:00
Todd C. Miller
371b974e07 Use "hg log --template" instead of "hg log --style". 2022-10-01 16:59:07 -06:00
Todd C. Miller
376d18b5da Add fchownat() systems without it. 2022-09-21 19:08:12 -06:00
Todd C. Miller
a14bef6a41 Do not check files generated by protbuf-c with PVS-Studio 2022-06-29 10:17:35 -06:00
Todd C. Miller
71c07579ba Update to protobuf-c 1.4.0 2022-06-03 12:50:31 -06:00
kernelmethod
0b541c2029 Add a --with-apparmor build flag
Add a new build flag, --with-apparmor, that builds sudo with AppArmor
support. Modify the build script for Debian and Ubuntu to enable this
flag by default.
2022-05-23 13:41:14 -06:00
Todd C. Miller
b61a55eb1b Fix dependency check for libssl on Debian/Ubuntu with OpenSSL 3.
Also add check for python 3.10 and 3.11 and remove versions < 3.4.
Fixes building on Ubuntu 22.04.
2022-05-15 07:45:51 -06:00