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