summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2014-03-04 18:07:57 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-07 14:58:45 +0000
commitfa7d335f2282234f10310318b01f1c4fd02af3d9 (patch)
treec1f8947215e9492e83a8908af02762055142e163
parent370717d32821d0c6d82901e6b4de7cdbba20bbaf (diff)
downloadpoky-fa7d335f2282234f10310318b01f1c4fd02af3d9.tar.gz
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>
-rw-r--r--meta/recipes-extended/rpcbind/rpcbind_0.2.1.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-extended/rpcbind/rpcbind_0.2.1.bb b/meta/recipes-extended/rpcbind/rpcbind_0.2.1.bb
index d9eb1a2527..23219e01bd 100644
--- a/meta/recipes-extended/rpcbind/rpcbind_0.2.1.bb
+++ b/meta/recipes-extended/rpcbind/rpcbind_0.2.1.bb
@@ -37,7 +37,13 @@ INITSCRIPT_PARAMS = "start 12 2 3 4 5 . stop 60 0 1 6 ."
37SYSTEMD_SERVICE_${PN} = "rpcbind.service" 37SYSTEMD_SERVICE_${PN} = "rpcbind.service"
38SYSTEMD_AUTO_ENABLE = "disable" 38SYSTEMD_AUTO_ENABLE = "disable"
39 39
40EXTRA_OECONF += " --enable-warmstarts " 40inherit useradd
41
42USERADD_PACKAGES = "${PN}"
43USERADD_PARAM_${PN} = "--system --no-create-home \
44 --shell /bin/false --user-group rpc"
45
46EXTRA_OECONF += " --enable-warmstarts --with-rpcuser=rpc"
41 47
42do_install_append () { 48do_install_append () {
43 mv ${D}${bindir} ${D}${sbindir} 49 mv ${D}${bindir} ${D}${sbindir}