luci-base: establish ubus connection before dropping privileges (#310)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
76dfdc1b1e
commit
993cf12229
1 changed files with 3 additions and 0 deletions
|
@ -371,6 +371,9 @@ function dispatch(request)
|
||||||
end
|
end
|
||||||
|
|
||||||
if track.setuser then
|
if track.setuser then
|
||||||
|
-- trigger ubus connection before dropping root privs
|
||||||
|
util.ubus()
|
||||||
|
|
||||||
sys.process.setuser(track.setuser)
|
sys.process.setuser(track.setuser)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue