Message ID | 1392799558-31118-1-git-send-email-koen.kooi@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDGMDANNQYHRBVO6SGMAKGQEJRK7UXQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B3B77201EE for <linaro@patches.linaro.org>; Wed, 19 Feb 2014 08:46:13 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id c41sf132057yho.1 for <linaro@patches.linaro.org>; Wed, 19 Feb 2014 00:46:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=kvuBq8lgykbUYH+v+yN0fywm7WkslyHAr8z2T7lLrRs=; b=OVEZD8XtXf+hfpZ0SRwLhpNvDt50O9An9hN3FWcmuBSO1PRGnms55jQwYWkvEdwd4L gJXQLJmCJ5mEeabIL4Gv35uDQE/sU8so9XdfXgJdpg7tjR8rUA8+l+zcHNhK57R1iw3m AltBXTzxxZCl15q6cMmoXlUv/RInRs9OBNI8+9+kT8mP2UMBphLZwCwXnASIamTguC0K 6nXM+6/SK9b/DM+yc8swXTSFWKpm9WU0ssfQkUxRKG1wP/PkiNGPzj0GNuBT/QxW3i7A vAwqOYjP9WhNH7MgDq/8rM9QfJVJDMqx2zHuJIGRRYwHWs09A2S5Eldvw9eUCwGK9ao8 mXYw== X-Gm-Message-State: ALoCoQlzMZRYtZHVGapWO2pKzp4IFtOPzMWSajf69BYQMXjnZlgfjQhFN2u18CAHNzRwwtL5KaL7 X-Received: by 10.236.101.195 with SMTP id b43mr2091343yhg.57.1392799573479; Wed, 19 Feb 2014 00:46:13 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.90.80 with SMTP id w74ls17526qgd.95.gmail; Wed, 19 Feb 2014 00:46:13 -0800 (PST) X-Received: by 10.220.103.141 with SMTP id k13mr20351696vco.25.1392799573390; Wed, 19 Feb 2014 00:46:13 -0800 (PST) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id dq2si6522720veb.31.2014.02.19.00.46.13 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Feb 2014 00:46:13 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id hu8so82378vcb.1 for <patchwork-forward@linaro.org>; Wed, 19 Feb 2014 00:46:13 -0800 (PST) X-Received: by 10.52.65.207 with SMTP id z15mr485709vds.61.1392799573249; Wed, 19 Feb 2014 00:46:13 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp280915vcz; Wed, 19 Feb 2014 00:46:12 -0800 (PST) X-Received: by 10.68.171.229 with SMTP id ax5mr795632pbc.125.1392799572254; Wed, 19 Feb 2014 00:46:12 -0800 (PST) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id bx2si10127277pbb.223.2014.02.19.00.46.11 for <multiple recipients>; Wed, 19 Feb 2014 00:46:12 -0800 (PST) Received-SPF: pass (google.com: domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 108626E7D3; Wed, 19 Feb 2014 08:46:09 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by mail.openembedded.org (Postfix) with ESMTP id C495E6CBDF for <openembedded-core@lists.openembedded.org>; Wed, 19 Feb 2014 08:46:06 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id x13so68331wgg.13 for <openembedded-core@lists.openembedded.org>; Wed, 19 Feb 2014 00:46:06 -0800 (PST) X-Received: by 10.194.175.202 with SMTP id cc10mr12773251wjc.48.1392799566676; Wed, 19 Feb 2014 00:46:06 -0800 (PST) Received: from localhost ([2001:610:612:0:5e51:4fff:fec8:7c15]) by mx.google.com with ESMTPSA id di9sm49795077wid.6.2014.02.19.00.46.05 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Feb 2014 00:46:05 -0800 (PST) From: Koen Kooi <koen.kooi@linaro.org> To: openembedded-core@lists.openembedded.org Date: Wed, 19 Feb 2014 09:45:58 +0100 Message-Id: <1392799558-31118-1-git-send-email-koen.kooi@linaro.org> X-Mailer: git-send-email 1.8.4.2 Cc: Koen Kooi <koen.kooi@linaro.org> Subject: [OE-core] [PATCH] openssh: enable PAM at runtime based on DISTRO_FEATURES X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.openembedded.org/mailman/listinfo/openembedded-core>, <mailto:openembedded-core-request@lists.openembedded.org?subject=subscribe> MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: koen.kooi@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
diff --git a/meta/recipes-connectivity/openssh/openssh_6.4p1.bb b/meta/recipes-connectivity/openssh/openssh_6.4p1.bb index 9c0bb48..5b9ec10 100644 --- a/meta/recipes-connectivity/openssh/openssh_6.4p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_6.4p1.bb @@ -82,6 +82,8 @@ do_install_append () { if [ "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then install -d ${D}${sysconfdir}/pam.d install -m 0755 ${WORKDIR}/sshd ${D}${sysconfdir}/pam.d/sshd + sed -i -e 's:#UsePAM no:UsePAM yes:' ${WORKDIR}/sshd_config + sed -i -e 's:#UsePAM no:UsePAM yes:' ${D}${sysconfdir}/ssh/sshd_config fi install -d ${D}${sysconfdir}/init.d
Everything is setup to use PAM except for the server config. If 'pam' is in DISTRO_FEATURES the configs will be changed to enable it. Syslog will now show: Feb 19 09:28:36 beast sshd[2980]: pam_unix(sshd:session): session opened for user koen by (uid=0) And more importantly: koen@beast:~$ loginctl SESSION UID USER SEAT c1 1000 koen seat0 c3 1000 koen seat0 c13 1000 koen 3 sessions listed. Systemd now registers the session properly so it won't kill things like 'screen' and 'tmux' when disconnecting the ssh session. Signed-off-by: Koen Kooi <koen.kooi@linaro.org> --- meta/recipes-connectivity/openssh/openssh_6.4p1.bb | 2 ++ 1 file changed, 2 insertions(+)