diff options
author | Matt Madison <matt@madison.systems> | 2015-04-04 11:04:58 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-15 18:12:41 +0100 |
commit | c3613297f0e1146aa4fd07ffb1725366ab5e1e5e (patch) | |
tree | b39da51d6396d2a216416754dbfbad19c5e8c6c9 /meta/recipes-extended | |
parent | ec3a90915fa3f0d56a1a90cf48cf4bb2d20690bb (diff) | |
download | poky-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.inc | 19 |
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 | ||
152 | PACKAGES =+ "${PN}-base" | ||
153 | FILES_${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 | " | ||
163 | RDEPENDS_${PN} += "${PN}-base" | ||
164 | |||
152 | inherit update-alternatives | 165 | inherit update-alternatives |
153 | 166 | ||
154 | ALTERNATIVE_PRIORITY = "200" | 167 | ALTERNATIVE_PRIORITY = "200" |
155 | 168 | ||
156 | ALTERNATIVE_${PN} = "passwd chfn newgrp chsh groups chpasswd login vipw vigr su" | 169 | ALTERNATIVE_${PN} = "passwd chfn chsh chpasswd vipw vigr" |
157 | ALTERNATIVE_LINK_NAME[chpasswd] = "${sbindir}/chpasswd" | 170 | ALTERNATIVE_LINK_NAME[chpasswd] = "${sbindir}/chpasswd" |
158 | ALTERNATIVE_LINK_NAME[login] = "${base_bindir}/login" | ||
159 | ALTERNATIVE_LINK_NAME[vipw] = "${base_sbindir}/vipw" | 171 | ALTERNATIVE_LINK_NAME[vipw] = "${base_sbindir}/vipw" |
160 | ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr" | 172 | ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr" |
173 | |||
174 | ALTERNATIVE_${PN}-base = "newgrp groups login su" | ||
175 | ALTERNATIVE_LINK_NAME[login] = "${base_bindir}/login" | ||
161 | ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su" | 176 | ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su" |
162 | 177 | ||
163 | ALTERNATIVE_${PN}-doc = "passwd.5 getspnam.3" | 178 | ALTERNATIVE_${PN}-doc = "passwd.5 getspnam.3" |