diff options
author | Li Wang <li.wang@windriver.com> | 2024-01-29 14:23:28 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2024-02-07 18:41:41 -0500 |
commit | 182c4742c6f4f91ce51e66978f961ef2c2923bd5 (patch) | |
tree | 04554fdc7cf4c4d226c71e951aff482a145e44a3 | |
parent | c5008af2c57a215d3394af1e96b33fc173dd984e (diff) | |
download | meta-openembedded-182c4742c6f4f91ce51e66978f961ef2c2923bd5.tar.gz |
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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-networking/recipes-daemons/radvd/radvd.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-networking/recipes-daemons/radvd/radvd.inc b/meta-networking/recipes-daemons/radvd/radvd.inc index 219d88f499..5da31b3f0e 100644 --- a/meta-networking/recipes-daemons/radvd/radvd.inc +++ b/meta-networking/recipes-daemons/radvd/radvd.inc | |||
@@ -59,7 +59,7 @@ do_install:append () { | |||
59 | 59 | ||
60 | USERADD_PACKAGES = "${PN}" | 60 | USERADD_PACKAGES = "${PN}" |
61 | GROUPADD_PARAM:${PN} = "--system nogroup" | 61 | GROUPADD_PARAM:${PN} = "--system nogroup" |
62 | USERADD_PARAM:${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g nogroup radvd" | 62 | USERADD_PARAM:${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g nogroup --shell /sbin/nologin radvd" |
63 | 63 | ||
64 | pkg_postinst:${PN} () { | 64 | pkg_postinst:${PN} () { |
65 | if [ -z "$D" -a -x /etc/init.d/populate-volatile.sh ]; then | 65 | if [ -z "$D" -a -x /etc/init.d/populate-volatile.sh ]; then |