]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
rpcbind: set the owner of /run/rpcbind to rpc
authorYi Zhao <yi.zhao@windriver.com>
Thu, 20 Nov 2025 06:44:41 +0000 (14:44 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Dec 2025 23:59:49 +0000 (23:59 +0000)
The current owner of /run/rpcbind is root, which prevents the rpc user
from creating files in this directory. When the rpcbind service is
stopped, the following errors are logged:

$ systemctl stop rpcbind
 systemd[1]: Stopping RPC Bind...
 rpcbind[270]: cannot open file = /run/rpcbind/rpcbind.xdr for writing
 rpcbind[270]: cannot save any registration
 rpcbind[270]: cannot open file = /run/rpcbind/portmap.xdr for writing
 rpcbind[270]: cannot save any registration
 systemd[1]: rpcbind.service: Deactivated successfully.
 systemd[1]: Stopped RPC Bind.

Set the owner of /run/rpcbind to rpc to fix this issue.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/recipes-extended/rpcbind/rpcbind/rpcbind.tmpfiles

index fecee72c09dc675751d8bc65c1ffb98d89bdeb05..65805e726315271ad4ee28fd409f0c3287a515f5 100644 (file)
@@ -1 +1 @@
-d /run/rpcbind 0755 root root -
+d /run/rpcbind 0755 rpc rpc -