diff options
author | Kévin THIERRY <kevin.thierry@open.eurogiciel.org> | 2014-06-25 14:57:37 +0200 |
---|---|---|
committer | Kévin THIERRY <kevin.thierry@open.eurogiciel.org> | 2014-06-25 15:49:10 +0200 |
commit | 44940640c586ef8201423fafa027b48239ecdb16 (patch) | |
tree | 06179ab964a5288f02faf12deb1c27bfffbb08ed | |
parent | 2615cda1511717cadfb8ebaee61f61bde95a2934 (diff) | |
download | meta-tizen-44940640c586ef8201423fafa027b48239ecdb16.tar.gz meta-tizen-44940640c586ef8201423fafa027b48239ecdb16.tar.bz2 meta-tizen-44940640c586ef8201423fafa027b48239ecdb16.zip |
Add sudo pam rule from Tizen
Use sudo pam rule from Tizen instead of the one provided by Yocto
(upstream rule).
Change-Id: I1dc518294faf334364ad533c3b9876b0eca730da
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
-rw-r--r-- | recipes-extended/sudo/sudo/pam.d/sudo | 6 | ||||
-rw-r--r-- | recipes-extended/sudo/sudo_1.8.10p2.bbappend | 10 |
2 files changed, 16 insertions, 0 deletions
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 +} |