diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2014-03-04 11:39:00 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-07 14:58:45 +0000 |
commit | c5c99de41939f201102f643f875abd16fa65fece (patch) | |
tree | d124af8e9a385699a998bd02d3169d81a376b9ce /meta/recipes-connectivity/nfs-utils | |
parent | fa7d335f2282234f10310318b01f1c4fd02af3d9 (diff) | |
download | ast2050-yocto-poky-c5c99de41939f201102f643f875abd16fa65fece.zip ast2050-yocto-poky-c5c99de41939f201102f643f875abd16fa65fece.tar.gz |
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>
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils')
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon index c949b96..65fdd1d 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon @@ -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 } |