mirror of
https://git.yoctoproject.org/poky
synced 2026-04-13 14:02:21 +02:00
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:
committed by
Richard Purdie
parent
fa7d335f22
commit
c5c99de419
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user