nfs-utils: run rpc.statd as rpcuser:rpcuser instead of rpcuser:root

For security policy, change the group of running rpc.stdtd to rpcuser,
just like Radhat does.

(From OE-Core rev: 7f922a7b65690fcc110413b83953d466d46e977b)

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:
Jackie Huang
2014-03-04 11:39:00 +08:00
committed by Richard Purdie
parent fa7d335f22
commit c5c99de419

View File

@@ -36,7 +36,7 @@ create_directories(){
umask 077
mkdir -p rpc_pipefs
mkdir -p sm sm.bak statd
chown rpcuser sm sm.bak statd
chown rpcuser:rpcuser sm sm.bak statd
test -w statd/state || {
rm -f statd/state
:>statd/state
@@ -50,7 +50,7 @@ create_directories(){
}
done
)
chown rpcuser "$NFS_STATEDIR"
chown rpcuser:rpcuser "$NFS_STATEDIR"
echo done
}