-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openssh: fix sshd.socket failure issue
More info at: systemd/systemd#29897 Fixed a mishap in sshd homedir location. Newer sshd uses /usr/share/empty.sshd as its home dir. Change-Id: I6481acfcdfc4a8971abed9935e49cd393b7f1086 Signed-off-by: Shreenidhi Shedi <[email protected]> Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/22309 Reviewed-by: Tapas Kundu <[email protected]> Tested-by: Tapas Kundu <[email protected]>
- Loading branch information
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Summary: Free version of the SSH connectivity tools | ||
Name: openssh | ||
Version: 9.3p2 | ||
Release: 3%{?dist} | ||
Release: 4%{?dist} | ||
License: BSD | ||
URL: https://www.openssh.com | ||
Group: System Environment/Security | ||
|
@@ -111,7 +111,6 @@ install -p -D -m 0644 %{SOURCE5} %{buildroot}%{_sysusersdir}/%{name}.sysusers | |
|
||
%{_fixperms} %{buildroot}/* | ||
|
||
%if 0%{?with_check} | ||
%check | ||
if ! getent passwd sshd >/dev/null; then | ||
useradd sshd | ||
|
@@ -124,7 +123,6 @@ cp %{buildroot}%{_bindir}/scp %{_bindir} | |
chmod g+w . -R | ||
useradd test -G root -m | ||
sudo -u test -s /bin/bash -c "PATH=$PATH make tests -j$(nproc)" | ||
%endif | ||
|
||
%pre server | ||
%sysusers_create_compat %{SOURCE5} | ||
|
@@ -135,7 +133,7 @@ sudo -u test -s /bin/bash -c "PATH=$PATH make tests -j$(nproc)" | |
%post server | ||
/sbin/ldconfig | ||
if [ $1 -eq 1 ]; then | ||
chown -v root:sys %{privsep_path} | ||
chown -v root:sys %{privsep_path} | ||
fi | ||
%systemd_post %{sshd_services} | ||
|
||
|
@@ -195,6 +193,8 @@ rm -rf %{buildroot}/* | |
%{_mandir}/man8/ssh-sk-helper.8.gz | ||
|
||
%changelog | ||
* Tue Nov 07 2023 Shreenidhi Shedi <[email protected]> 9.3p2-4 | ||
- Fix sshd.socket failure issue upon graceful session exit | ||
* Wed Aug 30 2023 Shreenidhi Shedi <[email protected]> 9.3p2-3 | ||
- Keyscan fips mode fix | ||
* Fri Jul 28 2023 Srish Srinivasan <[email protected]> 9.3p2-2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
g sshd 50 | ||
u sshd 50 "sshd PrivSep" /var/lib/sshd /bin/false | ||
u sshd 50 "sshd PrivSep" /usr/share/empty.sshd /bin/false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters