nfs-utils: run rpc.statd as rpcuser:rpcuser instead of rpcuser:root
authorJackie Huang <jackie.huang@windriver.com>
Tue, 4 Mar 2014 03:39:00 +0000 (11:39 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Mar 2014 14:58:45 +0000 (14:58 +0000)
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>
meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon

index c949b96..65fdd1d 100644 (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
 }