From: Saul Wold <sgw@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [Consolidated & Tested 20/35] openssh: Support PAM
Date: Wed, 27 Jul 2011 00:47:10 -0700 [thread overview]
Message-ID: <e3222bc3dd469df9bbaf7316637072b9867eea9d.1311752531.git.sgw@linux.intel.com> (raw)
In-Reply-To: <cover.1311752531.git.sgw@linux.intel.com>
In-Reply-To: <cover.1311752531.git.sgw@linux.intel.com>
From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Adding configuration file "sshd" in /etc/pam.d/ for supporting pam.
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
---
.../openssh/openssh-5.8p2/sshd | 10 ++++++++++
meta/recipes-connectivity/openssh/openssh_5.8p2.bb | 13 +++++++++++--
2 files changed, 21 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-connectivity/openssh/openssh-5.8p2/sshd
diff --git a/meta/recipes-connectivity/openssh/openssh-5.8p2/sshd b/meta/recipes-connectivity/openssh/openssh-5.8p2/sshd
new file mode 100644
index 0000000..4882e58
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh-5.8p2/sshd
@@ -0,0 +1,10 @@
+#%PAM-1.0
+
+auth include common-auth
+account required pam_nologin.so
+account include common-account
+password include common-password
+session optional pam_keyinit.so force revoke
+session include common-session
+session required pam_loginuid.so
+
diff --git a/meta/recipes-connectivity/openssh/openssh_5.8p2.bb b/meta/recipes-connectivity/openssh/openssh_5.8p2.bb
index e23069c..89b011d 100644
--- a/meta/recipes-connectivity/openssh/openssh_5.8p2.bb
+++ b/meta/recipes-connectivity/openssh/openssh_5.8p2.bb
@@ -7,7 +7,7 @@ SECTION = "console/network"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENCE;md5=bae9a689be41581503bcf95d8fb42c4e"
-PR = "r0"
+PR = "r1"
DEPENDS = "zlib openssl"
DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
@@ -23,7 +23,9 @@ SRC_URI = "ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar.
file://sshd_config \
file://ssh_config \
file://init \
- "
+ ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}"
+
+PAM_SRC_URI = "file://sshd"
SRC_URI[md5sum] = "0541579adf9d55abb15ef927048d372e"
SRC_URI[sha256sum] = "5c35ec7c966ce05cc4497ac59c0b54a556e55ae7368165cc8c4129694654f314"
@@ -58,6 +60,13 @@ do_compile_append () {
}
do_install_append () {
+ for i in ${DISTRO_FEATURES};
+ do
+ if [ ${i} = "pam" ]; then
+ install -d ${D}${sysconfdir}/pam.d
+ install -m 0755 ${WORKDIR}/sshd ${D}${sysconfdir}/pam.d/sshd
+ fi
+ done
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/sshd
mv ${D}${bindir}/scp ${D}${bindir}/scp.${PN}
--
1.7.3.4
next prev parent reply other threads:[~2011-07-27 7:52 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-27 7:46 [Consolidated & Tested 00/35] July 27 Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 01/35] meta/conf/local.conf.sample: remove oprofileui-native related settings Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 02/35] meta/conf/local.conf.sample: improve comments/layout Saul Wold
2011-07-27 9:36 ` Phil Blundell
2011-07-27 15:52 ` Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 03/35] meta/conf/local.conf.sample: improve terminal examples/comments Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 04/35] meta/conf/local.conf.sample: remove nonfunctional BBINCLUDELOGS setting Saul Wold
2011-07-27 10:53 ` Paul Eggleton
2011-07-27 7:46 ` [Consolidated & Tested 05/35] libxcb: Add missing DEPENDS on libxdmcp Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 06/35] dropbear: don't override DISTRO_TYPE if it is already set Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 07/35] console-tools: removed wildcard from SRC_URI Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 08/35] module-init-tools: do not build static utilities for -cross Saul Wold
2011-07-27 7:46 ` [Consolidated & Tested 09/35] eglibc: remove unnecessary FILESPATHPKG usage Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 10/35] scripts/combo-layer: keep carriage returns at the end of lines Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 11/35] machine/qemu: set preferred linux-yocto kernel version Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 12/35] libcap: Update to 2.22 with License Clarification Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 13/35] libpam: update to 1.1.4 and add subpackage xtests Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 14/35] cups: add pam support Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 15/35] screen: " Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 16/35] sudo: " Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 17/35] cronie: enable PAM support for cronie Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 18/35] shadow: update pam related configure files Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 19/35] at: enable pam support Saul Wold
2011-07-27 7:47 ` Saul Wold [this message]
2011-07-27 7:47 ` [Consolidated & Tested 21/35] dropbear: Support pam Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 22/35] polkit: " Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 23/35] siteinfo: Move certain samba entries to common-linux Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 24/35] siteinfo: Move certain bash " Saul Wold
2011-07-27 9:44 ` Phil Blundell
2011-07-27 10:47 ` Richard Purdie
2011-07-27 15:35 ` Tom Rini
2011-07-27 15:52 ` Phil Blundell
2011-07-27 15:55 ` Tom Rini
2011-07-27 7:47 ` [Consolidated & Tested 25/35] x86_64-linux siteinfo: Add bash info Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 26/35] siteinfo: Move certain mysql entries to common-linux Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 27/35] siteinfo: Move the rp-pppoe entry " Saul Wold
2011-07-27 9:47 ` Phil Blundell
2011-07-27 15:36 ` Tom Rini
2011-07-27 15:40 ` Richard Purdie
2011-07-27 15:43 ` Tom Rini
2011-07-27 15:47 ` Tom Rini
2011-07-27 7:47 ` [Consolidated & Tested 28/35] siteinfo: Move certain db entries " Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 29/35] siteinfo: Move general realloc/malloc values to common-$libc Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 30/35] siteinfo: Move (getpgrp|setpgrp|setgrent|*get{pwuid, grgid}) to common-libc Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 31/35] siteinfo: Rework the siteinfo for powerpc to fix uclibc fallout Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 32/35] Remove -live.bb recipes Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 33/35] Remove -directdisk.bb recipes Saul Wold
2011-07-27 7:47 ` [Consolidated & Tested 34/35] classes/image*: Revamp creation of live images Saul Wold
2011-07-27 11:03 ` Richard Purdie
2011-07-27 7:47 ` [Consolidated & Tested 35/35] utils.bbclass: Don't forget to pass the cmdline options Saul Wold
2011-07-27 11:06 ` [Consolidated & Tested 00/35] July 27 Richard Purdie
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=e3222bc3dd469df9bbaf7316637072b9867eea9d.1311752531.git.sgw@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/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