luci-base: properly handle ubus connections for non-root (#570, #571)
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 9 Dec 2015 19:32:12 +0000 (20:32 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 11 Jan 2016 14:21:46 +0000 (15:21 +0100)
commit81e80c4b876e8e68bb8b022c39d0941e2c1ccb56
treea4563027598b84db3e86996b402e6d75ce5e6993
parent6619e66fc9de32e7bf911b929e320ab17a414697
luci-base: properly handle ubus connections for non-root (#570, #571)

Instead of relying on the connect-before-setuid hack, ship a proper
acl definition file whitelisting the procedures that LuCI requires
on its non-root pages.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/luci-base/luasrc/dispatcher.lua
modules/luci-base/root/usr/share/acl.d/luci-base.json [new file with mode: 0644]