Skip to content

Commit 7a7f01d

Browse files
committed
luci-app-natmap: allow reading status under /tmp/run
rpcd's file plugin now checks ACL against the real path of symlinks, so /var/run/natmap/* (which resolves to /tmp/run/natmap/* on OpenWrt) gets rejected and the LuCI status view shows none. Add the resolved path to the read ACL. Signed-off-by: Fabiao De Gongniu <ragingbullniu@gmail.com> (cherry picked from commit 7a1fc28)
1 parent 1654281 commit 7a7f01d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

applications/luci-app-natmap/root/usr/share/rpcd/acl.d/luci-app-natmap.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"description": "Grant access to LuCI app natmap",
44
"read": {
55
"file": {
6-
"/var/run/natmap/*": [ "read" ]
6+
"/var/run/natmap/*": [ "read" ],
7+
"/tmp/run/natmap/*": [ "read" ]
78
},
89
"ubus": {
910
"service": [ "list" ]

0 commit comments

Comments
 (0)