projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76dfdc1
)
luci-base: establish ubus connection before dropping privileges (#310)
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 9 Feb 2015 11:14:20 +0000
(12:14 +0100)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 9 Feb 2015 11:14:20 +0000
(12:14 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/luci-base/luasrc/dispatcher.lua
patch
|
blob
|
history
diff --git
a/modules/luci-base/luasrc/dispatcher.lua
b/modules/luci-base/luasrc/dispatcher.lua
index 795b62bedbff28b5e3a1bd31ffda91fe9e7e6474..a80dd706e0575892cf9bd4bc9bb0c1b88296641a 100644
(file)
--- a/
modules/luci-base/luasrc/dispatcher.lua
+++ b/
modules/luci-base/luasrc/dispatcher.lua
@@
-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