Skip to content
Snippets Groups Projects
Commit 360cc482 authored by Rocky Automation's avatar Rocky Automation :tv:
Browse files

import imports/r9/openssh-8.7p1-30.el9_2.security.0.2

parent 0879b4fb
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ diff -urpx '*.m4' -x '*.in' -x configure openssh-8.7p1-rh-systemd/sshd.c openssh
/* Signal systemd that we are ready to accept connections */
- sd_notify(0, "READY=1");
+ if (!fork()) {
+ void *handle = dlopen("libsystemd.so", RTLD_LAZY);
+ void *handle = dlopen("libsystemd.so.0", RTLD_LAZY);
+ if (handle) {
+ int (*sd_pid_notify)(pid_t pid, int unset_environment, const char *state);
+ *(void **)&sd_pid_notify = dlsym(handle, "sd_pid_notify");
......
......@@ -58,7 +58,7 @@
Summary: An open source implementation of SSH protocol version 2
Name: openssh
Version: %{openssh_ver}
Release: %{openssh_rel}%{?dist}.0.1
Release: %{openssh_rel}%{?dist}.0.2
URL: http://www.openssh.com/portable.html
#URL1: https://github.com/jbeverly/pam_ssh_agent_auth/
Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
......@@ -327,6 +327,7 @@ Requires: openssh = %{version}-%{release}
Requires(pre): /usr/sbin/useradd
Requires: pam >= 1.0.1-3
Requires: crypto-policies >= 20200610-1
Requires: systemd-libs
%{?systemd_requires}
%package keycat
......@@ -769,6 +770,10 @@ test -f %{sysconfig_anaconda} && \
%endif
%changelog
* Sat Oct 7 2023 Solar Designer <solar@openwall.com> 8.7p1-30.el9.security.0.2
- Load libsystemd.so.0, not libsystemd.so, as the latter is only provided by
systemd-devel
* Mon Aug 28 2023 Solar Designer <solar@openwall.com> 8.7p1-30.el9.security.0.1
- Instead of linking against libsystemd, load it dynamically in a temporary
child process to avoid polluting actual sshd's address space with that
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment