-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d61b44f
commit d33a9b8
Showing
6 changed files
with
66 additions
and
4 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 |
---|---|---|
@@ -1,3 +1,13 @@ | ||
openssh (1:9.7p1-4deepin1) unstable; urgency=medium | ||
|
||
* Refresh and re-apply deepin patches: | ||
deepin-extra-version.patch | ||
deepin-ssh-connect-idle-timeout.patch | ||
deepin-ssh-keygen-privatekey-file-perm.patch | ||
* Update openssh-server.ucf-md5sum. | ||
|
||
-- Tianyu Chen <[email protected]> Sun, 07 Apr 2024 15:23:02 +0800 | ||
|
||
openssh (1:9.7p1-4) unstable; urgency=medium | ||
|
||
* Rework systemd readiness notification and socket activation patches to | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/version.h | ||
+++ b/version.h | ||
@@ -5,7 +5,7 @@ | ||
#define SSH_PORTABLE "p1" | ||
#define SSH_RELEASE_MINIMUM SSH_VERSION SSH_PORTABLE | ||
#ifdef SSH_EXTRAVERSION | ||
-#define SSH_RELEASE SSH_RELEASE_MINIMUM " " SSH_EXTRAVERSION | ||
+#define SSH_RELEASE SSH_RELEASE_MINIMUM " " "Deepin" | ||
#else | ||
#define SSH_RELEASE SSH_RELEASE_MINIMUM | ||
#endif |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Description: 完成 ssh、tty登录超时自动退出需求实现 | ||
增加sshd默认配置项,ssh连接之后900秒无操作,自动退出 | ||
|
||
Origin: https://gerrit.uniontech.com/plugins/gitiles/base/openssh/+/202f13d0e50e7d3fe478ad39be7c59ab3ed30b52 | ||
Task: https://pms.uniontech.com/zentao/task-view-60279.html | ||
Last-Update: 2022-05-19 | ||
|
||
--- openssh-9.0p1.orig/sshd_config | ||
+++ openssh-9.0p1/sshd_config | ||
@@ -97,8 +97,8 @@ PrintMotd no | ||
#TCPKeepAlive yes | ||
#PermitUserEnvironment no | ||
#Compression delayed | ||
-#ClientAliveInterval 0 | ||
-#ClientAliveCountMax 3 | ||
+ClientAliveInterval 900 | ||
+ClientAliveCountMax 1 | ||
#UseDNS no | ||
#PidFile /var/run/sshd.pid | ||
#MaxStartups 10:30:100 |
18 changes: 18 additions & 0 deletions
18
debian/patches/deepin-ssh-keygen-privatekey-file-perm.patch
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Description: <short summary of the patch> | ||
TODO: Put a short summary on the line above and replace this paragraph | ||
|
||
Origin: https://gerrit.uniontech.com/plugins/gitiles/base/openssh/+/1aaa80cba01428f8738878a826db83fd1aeed6c4 | ||
Task: https://pms.uniontech.com/zentao/task-view-60275.html | ||
Last-Update: 2022-05-20 | ||
|
||
--- openssh-9.0p1.orig/sshbuf-io.c | ||
+++ openssh-9.0p1/sshbuf-io.c | ||
@@ -102,7 +102,7 @@ sshbuf_write_file(const char *path, stru | ||
{ | ||
int fd, oerrno; | ||
|
||
- if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)) == -1) | ||
+ if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0400)) == -1) | ||
return SSH_ERR_SYSTEM_ERROR; | ||
if (atomicio(vwrite, fd, sshbuf_mutable_ptr(buf), | ||
sshbuf_len(buf)) != sshbuf_len(buf) || close(fd) != 0) { |
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