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 | |
| parent | fa7d335f2282234f10310318b01f1c4fd02af3d9 (diff) | |
| download | 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>
| -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 c949b96d1e..65fdd1dd4f 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(){ | |||
| 36 | umask 077 | 36 | umask 077 |
| 37 | mkdir -p rpc_pipefs | 37 | mkdir -p rpc_pipefs |
| 38 | mkdir -p sm sm.bak statd | 38 | mkdir -p sm sm.bak statd |
| 39 | chown rpcuser sm sm.bak statd | 39 | chown rpcuser:rpcuser sm sm.bak statd |
| 40 | test -w statd/state || { | 40 | test -w statd/state || { |
| 41 | rm -f statd/state | 41 | rm -f statd/state |
| 42 | :>statd/state | 42 | :>statd/state |
| @@ -50,7 +50,7 @@ create_directories(){ | |||
| 50 | } | 50 | } |
| 51 | done | 51 | done |
| 52 | ) | 52 | ) |
| 53 | chown rpcuser "$NFS_STATEDIR" | 53 | chown rpcuser:rpcuser "$NFS_STATEDIR" |
| 54 | echo done | 54 | echo done |
| 55 | } | 55 | } |
| 56 | 56 | ||
