summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/shadow
diff options
context:
space:
mode:
authorMatt Madison <matt@madison.systems>2015-04-04 11:04:58 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-10 18:10:28 +0100
commit84e8b1ba296c92ec00cfc5b5077ee253c4ed65ab (patch)
tree5206932c82f50fa8e67adb0e5b3871a352ed282d /meta/recipes-extended/shadow
parentb77b25e283f3f3a3ff616616543a64d285acef50 (diff)
downloadpoky-84e8b1ba296c92ec00cfc5b5077ee253c4ed65ab.tar.gz
shadow: split files needed for PAM use into separate package
The rootfs creator automatically removes shadow for read-only root filesystems, which breaks use of PAM plugins for login and other process identity management utilities. Package those programs and config files separately, so they don't get removed. (From OE-Core rev: a7d8eaef04c9dd6ede8d4efd8c4b776efbe3c767) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow')
-rw-r--r--meta/recipes-extended/shadow/shadow.inc19
1 files changed, 17 insertions, 2 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc
index a05ead35b7..7c63d88c70 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -150,15 +150,30 @@ do_install_append() {
150 ln -sf newgrp.${BPN} ${D}${bindir}/sg 150 ln -sf newgrp.${BPN} ${D}${bindir}/sg
151} 151}
152 152
153PACKAGES =+ "${PN}-base"
154FILES_${PN}-base = "\
155 ${base_bindir}/login.shadow \
156 ${base_bindir}/su.shadow \
157 ${bindir}/sg \
158 ${bindir}/newgrp.shadow \
159 ${bindir}/groups.shadow \
160 ${sysconfdir}/pam.d/login \
161 ${sysconfdir}/pam.d/su \
162 ${sysconfdir}/login.defs \
163"
164RDEPENDS_${PN} += "${PN}-base"
165
153inherit update-alternatives 166inherit update-alternatives
154 167
155ALTERNATIVE_PRIORITY = "200" 168ALTERNATIVE_PRIORITY = "200"
156 169
157ALTERNATIVE_${PN} = "passwd chfn newgrp chsh groups chpasswd login vipw vigr su" 170ALTERNATIVE_${PN} = "passwd chfn chsh chpasswd vipw vigr"
158ALTERNATIVE_LINK_NAME[chpasswd] = "${sbindir}/chpasswd" 171ALTERNATIVE_LINK_NAME[chpasswd] = "${sbindir}/chpasswd"
159ALTERNATIVE_LINK_NAME[login] = "${base_bindir}/login"
160ALTERNATIVE_LINK_NAME[vipw] = "${base_sbindir}/vipw" 172ALTERNATIVE_LINK_NAME[vipw] = "${base_sbindir}/vipw"
161ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr" 173ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr"
174
175ALTERNATIVE_${PN}-base = "newgrp groups login su"
176ALTERNATIVE_LINK_NAME[login] = "${base_bindir}/login"
162ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su" 177ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su"
163 178
164ALTERNATIVE_${PN}-doc = "passwd.5 getspnam.3" 179ALTERNATIVE_${PN}-doc = "passwd.5 getspnam.3"