mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 02:10:04 +00:00
radvd: add '--shell /sbin/nologin' to /etc/passwd
the default setting USERADD_PARAM of yocto: -s /bin/sh follow redhat policy: radvd/redhat/systemd/radvd.spec useradd ... -s /sbin/nologin ... Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -62,7 +62,7 @@ do_install:append () {
|
|||||||
|
|
||||||
USERADD_PACKAGES = "${PN}"
|
USERADD_PACKAGES = "${PN}"
|
||||||
GROUPADD_PARAM:${PN} = "--system nogroup"
|
GROUPADD_PARAM:${PN} = "--system nogroup"
|
||||||
USERADD_PARAM:${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g nogroup radvd"
|
USERADD_PARAM:${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g nogroup --shell /sbin/nologin radvd"
|
||||||
|
|
||||||
pkg_postinst:${PN} () {
|
pkg_postinst:${PN} () {
|
||||||
if [ -z "$D" -a -x /etc/init.d/populate-volatile.sh ]; then
|
if [ -z "$D" -a -x /etc/init.d/populate-volatile.sh ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user