nfs-utils: force rpc.statd to run as user nobody
This commit is contained in:
parent
b9b510f559
commit
5b8198b48e
@ -55,7 +55,7 @@ drwxr-xr-x root/root usr/sbin/
|
|||||||
-rwxr-xr-x root/root usr/sbin/start-statd
|
-rwxr-xr-x root/root usr/sbin/start-statd
|
||||||
drwxr-xr-x root/root var/
|
drwxr-xr-x root/root var/
|
||||||
drwxr-xr-x root/root var/lib/
|
drwxr-xr-x root/root var/lib/
|
||||||
drwxr-xr-x root/root var/lib/nfs/
|
drwxr-xr-x nobody/root var/lib/nfs/
|
||||||
-rw-r--r-- root/root var/lib/nfs/etab (EMPTY)
|
-rw-r--r-- root/root var/lib/nfs/etab (EMPTY)
|
||||||
-rw-r--r-- root/root var/lib/nfs/rmtab (EMPTY)
|
-rw-r--r-- root/root var/lib/nfs/rmtab (EMPTY)
|
||||||
drwxr-xr-x root/root var/lib/nfs/rpc_pipefs/
|
drwxr-xr-x root/root var/lib/nfs/rpc_pipefs/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
name=nfs-utils
|
name=nfs-utils
|
||||||
version=1.2.5
|
version=1.2.5
|
||||||
release=1
|
release=2
|
||||||
source=(http://downloads.sourceforge.net/project/nfs/$name/$version/$name-$version.tar.bz2 \
|
source=(http://downloads.sourceforge.net/project/nfs/$name/$version/$name-$version.tar.bz2 \
|
||||||
exports idmapd.conf nfs nfsserver)
|
exports idmapd.conf nfs nfsserver)
|
||||||
|
|
||||||
@ -28,4 +28,7 @@ build () {
|
|||||||
|
|
||||||
install -d $PKG/var/lib/nfs/{rpc_pipefs,v4recovery}
|
install -d $PKG/var/lib/nfs/{rpc_pipefs,v4recovery}
|
||||||
install -d $PKG/etc/exports.d
|
install -d $PKG/etc/exports.d
|
||||||
|
|
||||||
|
# force rpc.statd to run as user nobody
|
||||||
|
chown nobody $PKG/var/lib/nfs
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user