mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 12:32:15 +02:00
rpcbind: add rpc user and run rpcbind daemon with rpc user
For security policy, change to run rpcbind daemon with rpc user just like Redhat does, so set the --with-rpcuser to rpc and add rpc user. (From OE-Core rev: 52f7a1b403eabc52ca104f752484ec1572f2d9dd) Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
370717d328
commit
fa7d335f22
@@ -37,7 +37,13 @@ INITSCRIPT_PARAMS = "start 12 2 3 4 5 . stop 60 0 1 6 ."
|
||||
SYSTEMD_SERVICE_${PN} = "rpcbind.service"
|
||||
SYSTEMD_AUTO_ENABLE = "disable"
|
||||
|
||||
EXTRA_OECONF += " --enable-warmstarts "
|
||||
inherit useradd
|
||||
|
||||
USERADD_PACKAGES = "${PN}"
|
||||
USERADD_PARAM_${PN} = "--system --no-create-home \
|
||||
--shell /bin/false --user-group rpc"
|
||||
|
||||
EXTRA_OECONF += " --enable-warmstarts --with-rpcuser=rpc"
|
||||
|
||||
do_install_append () {
|
||||
mv ${D}${bindir} ${D}${sbindir}
|
||||
|
||||
Reference in New Issue
Block a user