mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00: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
|
umask 077
|
||||||
mkdir -p rpc_pipefs
|
mkdir -p rpc_pipefs
|
||||||
mkdir -p sm sm.bak statd
|
mkdir -p sm sm.bak statd
|
||||||
chown rpcuser sm sm.bak statd
|
chown rpcuser:rpcuser sm sm.bak statd
|
||||||
test -w statd/state || {
|
test -w statd/state || {
|
||||||
rm -f statd/state
|
rm -f statd/state
|
||||||
:>statd/state
|
:>statd/state
|
||||||
@@ -50,7 +50,7 @@ create_directories(){
|
|||||||
}
|
}
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
chown rpcuser "$NFS_STATEDIR"
|
chown rpcuser:rpcuser "$NFS_STATEDIR"
|
||||||
echo done
|
echo done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user