diff mbox series

[whinlatter,37/67] rpcbind: set the owner of /run/rpcbind to rpc

Message ID 20251213095931.2571498-37-ankur.tyagi85@gmail.com
State New
Headers show
Series [whinlatter,01/67] bluez5: upgrade 5.84 -> 5.85 | expand

Commit Message

Ankur Tyagi Dec. 13, 2025, 9:59 a.m. UTC
From: Yi Zhao <yi.zhao@windriver.com>

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>
(cherry picked from commit 80e428924715fa954fc68c381cb0aea19e73a5b8)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 meta/recipes-extended/rpcbind/rpcbind/rpcbind.tmpfiles | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-extended/rpcbind/rpcbind/rpcbind.tmpfiles b/meta/recipes-extended/rpcbind/rpcbind/rpcbind.tmpfiles
index fecee72c09..65805e7263 100644
--- a/meta/recipes-extended/rpcbind/rpcbind/rpcbind.tmpfiles
+++ b/meta/recipes-extended/rpcbind/rpcbind/rpcbind.tmpfiles
@@ -1 +1 @@ 
-d /run/rpcbind 0755 root root -
+d /run/rpcbind 0755 rpc rpc -