mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 08:31:46 +04:00
luci-base: establish ubus connection before dropping privileges (#310)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
@@ -371,6 +371,9 @@ function dispatch(request)
|
||||
end
|
||||
|
||||
if track.setuser then
|
||||
-- trigger ubus connection before dropping root privs
|
||||
util.ubus()
|
||||
|
||||
sys.process.setuser(track.setuser)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user