All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Enable openssh X11Forwarding if distro feature x11 is set
@ 2015-10-27 10:00 kai.kang
  2015-10-27 10:00 ` [PATCH 1/1] openssh: enable " kai.kang
  0 siblings, 1 reply; 2+ messages in thread
From: kai.kang @ 2015-10-27 10:00 UTC (permalink / raw)
  To: openembedded-core

From: Kai Kang <kai.kang@windriver.com>

The following changes since commit 505a82673ac2487df5ea343a6422c2fc47018831:

  build-appliance-image: Update to jethro head revision (2015-10-21 23:13:11 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib kangkai/ssh
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=kangkai/ssh

Kai Kang (1):
  openssh: enable X11Forwarding if distro feature x11 is set

 meta/recipes-connectivity/openssh/openssh_7.1p1.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

-- 
2.6.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] openssh: enable X11Forwarding if distro feature x11 is set
  2015-10-27 10:00 [PATCH 0/1] Enable openssh X11Forwarding if distro feature x11 is set kai.kang
@ 2015-10-27 10:00 ` kai.kang
  0 siblings, 0 replies; 2+ messages in thread
From: kai.kang @ 2015-10-27 10:00 UTC (permalink / raw)
  To: openembedded-core

From: Kai Kang <kai.kang@windriver.com>

When distro feature x11 is set, it is better enable X11Forwarding for
ssh daemon. For contrast, dropbear enable X11 forward by default.

It does NOT need to modify ${WORKDIR}/sshd_config, so drop the modification.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta/recipes-connectivity/openssh/openssh_7.1p1.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/openssh/openssh_7.1p1.bb b/meta/recipes-connectivity/openssh/openssh_7.1p1.bb
index 40938cc..d81127c 100644
--- a/meta/recipes-connectivity/openssh/openssh_7.1p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_7.1p1.bb
@@ -88,7 +88,11 @@ do_compile_ptest() {
 do_install_append () {
 	if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then
 		install -D -m 0644 ${WORKDIR}/sshd ${D}${sysconfdir}/pam.d/sshd
-		sed -i -e 's:#UsePAM no:UsePAM yes:' ${WORKDIR}/sshd_config ${D}${sysconfdir}/ssh/sshd_config
+		sed -i -e 's:#UsePAM no:UsePAM yes:' ${D}${sysconfdir}/ssh/sshd_config
+	fi
+
+	if [ "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" = "x11" ]; then
+		sed -i -e 's:#X11Forwarding no:X11Forwarding yes:' ${D}${sysconfdir}/ssh/sshd_config
 	fi
 
 	install -d ${D}${sysconfdir}/init.d
-- 
2.6.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-27 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-27 10:00 [PATCH 0/1] Enable openssh X11Forwarding if distro feature x11 is set kai.kang
2015-10-27 10:00 ` [PATCH 1/1] openssh: enable " kai.kang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.