Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openssh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SIG
security
rpms
openssh
Commits
360cc482
Commit
360cc482
authored
1 year ago
by
Rocky Automation
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SOURCES/openssh-8.7p1-rocky-systemd.patch
+1
-1
1 addition, 1 deletion
SOURCES/openssh-8.7p1-rocky-systemd.patch
SPECS/openssh.spec
+6
-1
6 additions, 1 deletion
SPECS/openssh.spec
with
7 additions
and
2 deletions
SOURCES/openssh-8.7p1-rocky-systemd.patch
+
1
−
1
View file @
360cc482
...
...
@@ -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");
...
...
This diff is collapsed.
Click to expand it.
SPECS/openssh.spec
+
6
−
1
View file @
360cc482
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment