From 44940640c586ef8201423fafa027b48239ecdb16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20THIERRY?= Date: Wed, 25 Jun 2014 14:57:37 +0200 Subject: Add sudo pam rule from Tizen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use sudo pam rule from Tizen instead of the one provided by Yocto (upstream rule). Change-Id: I1dc518294faf334364ad533c3b9876b0eca730da Signed-off-by: Kévin THIERRY --- recipes-extended/sudo/sudo/pam.d/sudo | 6 ++++++ recipes-extended/sudo/sudo_1.8.10p2.bbappend | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 recipes-extended/sudo/sudo/pam.d/sudo create mode 100644 recipes-extended/sudo/sudo_1.8.10p2.bbappend (limited to 'recipes-extended') diff --git a/recipes-extended/sudo/sudo/pam.d/sudo b/recipes-extended/sudo/sudo/pam.d/sudo new file mode 100644 index 00000000..4d78b1e5 --- /dev/null +++ b/recipes-extended/sudo/sudo/pam.d/sudo @@ -0,0 +1,6 @@ +#%PAM-1.0 +auth include system-auth +account include system-auth +password include system-auth +session include system-auth +# session optional pam_xauth.so diff --git a/recipes-extended/sudo/sudo_1.8.10p2.bbappend b/recipes-extended/sudo/sudo_1.8.10p2.bbappend new file mode 100644 index 00000000..e0208cf2 --- /dev/null +++ b/recipes-extended/sudo/sudo_1.8.10p2.bbappend @@ -0,0 +1,10 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/sudo:" + +SRC_URI += "file://pam.d/sudo" + +do_install_append () { + # Use Tizen pam rule for sudo instead of the upstream one + if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then + install -D -m 664 ${WORKDIR}/pam.d/sudo ${D}/${sysconfdir}/pam.d/sudo + fi +} -- cgit v1.2.3