From: Saul Wold <sgw@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Cc: Paul Eggleton <paul.eggleton@linux.intel.com>
Subject: [PATCH 2/5] openssh: avoid screen sessions being killed on disconnect with systemd
Date: Wed, 5 Nov 2014 21:08:51 -0800 [thread overview]
Message-ID: <1415250534-16350-3-git-send-email-sgw@linux.intel.com> (raw)
In-Reply-To: <1415250534-16350-1-git-send-email-sgw@linux.intel.com>
From: Paul Eggleton <paul.eggleton@linux.intel.com>
Tell systemd just to kill the sshd process when the ssh connection drops
instead of the entire cgroup for sshd, so that any screen sessions (and
more to the point, processes within them) do not get killed.
(This is what the Fedora sshd service file does, and what we're already
doing in the dropbear service file).
(From OE-Core master rev: 3c238dff41fbd3687457989c7b17d22b2cc844be)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/recipes-connectivity/openssh/openssh/sshd@.service | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-connectivity/openssh/openssh/sshd@.service b/meta/recipes-connectivity/openssh/openssh/sshd@.service
index 4eda659..bb2d68e 100644
--- a/meta/recipes-connectivity/openssh/openssh/sshd@.service
+++ b/meta/recipes-connectivity/openssh/openssh/sshd@.service
@@ -8,3 +8,4 @@ ExecStart=-@SBINDIR@/sshd -i
ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID
StandardInput=socket
StandardError=syslog
+KillMode=process
--
1.8.3.1
next prev parent reply other threads:[~2014-11-06 5:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 5:08 [PATCH 0/5][daisy] Additional patches and CVE issues Saul Wold
2014-11-06 5:08 ` [PATCH 1/5] python: force off_t size to 8 to enable large file support Saul Wold
2014-11-06 5:08 ` Saul Wold [this message]
2014-11-06 5:08 ` [PATCH 3/5] libarchive: avoid dependency on e2fsprogs Saul Wold
2014-11-06 5:08 ` [PATCH 4/5] wget: Fix for CVE-2014-4887 Saul Wold
2014-11-06 5:08 ` [PATCH 5/5] readline: Patch for readline multikey dispatch issue Saul Wold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1415250534-16350-3-git-send-email-sgw@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=paul.eggleton@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox