summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorMatt Madison <matt@madison.systems>2015-04-04 11:04:58 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-15 18:12:41 +0100
commitc3613297f0e1146aa4fd07ffb1725366ab5e1e5e (patch)
treeb39da51d6396d2a216416754dbfbad19c5e8c6c9 /meta/recipes-extended
parentec3a90915fa3f0d56a1a90cf48cf4bb2d20690bb (diff)
downloadpoky-c3613297f0e1146aa4fd07ffb1725366ab5e1e5e.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 master rev: a7d8eaef04c9dd6ede8d4efd8c4b776efbe3c767) (From OE-Core rev: 783982314f140611ba2056a280421085bba5c155) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-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 bb3a927c17..b338432d2c 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -149,15 +149,30 @@ do_install_append() {
149 ln -sf newgrp.${BPN} ${D}${bindir}/sg 149 ln -sf newgrp.${BPN} ${D}${bindir}/sg
150} 150}
151 151
152PACKAGES =+ "${PN}-base"
153FILES_${PN}-base = "\
154 ${base_bindir}/login.shadow \
155 ${base_bindir}/su.shadow \
156 ${bindir}/sg \
157 ${bindir}/newgrp.shadow \
158 ${bindir}/groups.shadow \
159 ${sysconfdir}/pam.d/login \
160 ${sysconfdir}/pam.d/su \
161 ${sysconfdir}/login.defs \
162"
163RDEPENDS_${PN} += "${PN}-base"
164
152inherit update-alternatives 165inherit update-alternatives
153 166
154ALTERNATIVE_PRIORITY = "200" 167ALTERNATIVE_PRIORITY = "200"
155 168
156ALTERNATIVE_${PN} = "passwd chfn newgrp chsh groups chpasswd login vipw vigr su" 169ALTERNATIVE_${PN} = "passwd chfn chsh chpasswd vipw vigr"
157ALTERNATIVE_LINK_NAME[chpasswd] = "${sbindir}/chpasswd" 170ALTERNATIVE_LINK_NAME[chpasswd] = "${sbindir}/chpasswd"
158ALTERNATIVE_LINK_NAME[login] = "${base_bindir}/login"
159ALTERNATIVE_LINK_NAME[vipw] = "${base_sbindir}/vipw" 171ALTERNATIVE_LINK_NAME[vipw] = "${base_sbindir}/vipw"
160ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr" 172ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr"
173
174ALTERNATIVE_${PN}-base = "newgrp groups login su"
175ALTERNATIVE_LINK_NAME[login] = "${base_bindir}/login"
161ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su" 176ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su"
162 177
163ALTERNATIVE_${PN}-doc = "passwd.5 getspnam.3" 178ALTERNATIVE_${PN}-doc = "passwd.5 getspnam.3"