Skip to content

Commit

Permalink
Refresh and re-apply deepin patches
Browse files Browse the repository at this point in the history
  • Loading branch information
UTsweetyfish authored and deepin-ci-robot committed Apr 7, 2024
1 parent d61b44f commit d33a9b8
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 4 deletions.
10 changes: 10 additions & 0 deletions debian/changelog
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
Expand Down
8 changes: 4 additions & 4 deletions debian/openssh-server.ucf-md5sum
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ d96ecd9064ea650c44372a5a33d3e497
4e03b4df60cd00c651777ec14ff76aef

# From 1:9.2p1-1:
b8e751f62cf86a18bc30cdaae494b03f
b89c8626d43128cdb233536439e00566
5f589fb3658df8cb7cce8505cf821e40
8d7588b06f81ef23bea8d84442af8e68
a2cdc592eacf8a884829729418005d27
84066063a3f2c9412d5df7a7a0e6e293
8933d57d77504756fdde370bbdd08ee1
49d53e44b746ec2ad2103ac2860f97ff
11 changes: 11 additions & 0 deletions debian/patches/deepin-extra-version.patch
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
20 changes: 20 additions & 0 deletions debian/patches/deepin-ssh-connect-idle-timeout.patch
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 debian/patches/deepin-ssh-keygen-privatekey-file-perm.patch
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) {
3 changes: 3 additions & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ skip-utimensat-test-on-zfs.patch
zero-call-used-regs-m68k.patch
regress-conch-dev-zero.patch
configure-cache-vars.patch
deepin-extra-version.patch
deepin-ssh-connect-idle-timeout.patch
deepin-ssh-keygen-privatekey-file-perm.patch

0 comments on commit d33a9b8

Please sign in to comment.