luci-base: establish ubus connection before dropping privileges (#310)
luci-base: establish ubus connection before dropping privileges (#310)

Signed-off-by: Jo-Philipp Wich <a9275913d515487ffaed469337a530ed202da558@openwrt.org>

openwrt-es/openwrt-luci,teslamint/luci,sujeet14108/luci,bittorf/luci,ReclaimYourPrivacy/cloak-luci,male-puppies/luci,tobiaswaldvogel/luci,tobiaswaldvogel/luci,maxrio/luci981213,teslamint/luci,LazyZhu/openwrt-luci-trunk-mod,mumuqz/luci,thess/OpenWrt-luci,forward619/luci,ff94315/luci-1,thesabbir/luci,lbthomsen/openwrt-luci,zhaoxx063/luci,ff94315/luci-1,Noltari/luci,bright-things/ionic-luci,LuttyYang/luci,kuoruan/luci,oyido/luci,fkooman/luci,thess/OpenWrt-luci,lbthomsen/openwrt-luci,Hostle/luci,jlopenwrtluci/luci,db260179/openwrt-bpi-r1-luci,chris5560/openwrt-luci,remakeelectric/luci,david-xiao/luci,forward619/luci,MinFu/luci,jlopenwrtluci/luci,slayerrensky/luci,tcatm/luci,Sakura-Winkey/LuCI,slayerrensky/luci,forward619/luci,Wedmer/luci,rogerpueyo/luci,mumuqz/luci,teslamint/luci,oyido/luci,maxrio/luci981213,joaofvieira/luci,LazyZhu/openwrt-luci-trunk-mod,tcatm/luci,ff94315/luci-1,rogerpueyo/luci,male-puppies/luci,ollie27/openwrt_luci,RedSnake64/openwrt-luci-packages,Hostle/openwrt-luci-multi-user,LuttyYang/luci,Wedmer/luci,kuoruan/luci,ReclaimYourPrivacy/cloak-luci,Hostle/openwrt-luci-multi-user,db260179/openwrt-bpi-r1-luci,remakeelectric/luci,MinFu/luci,zhaoxx063/luci,thesabbir/luci,lcf258/openwrtcn,david-xiao/luci,male-puppies/luci,wongsyrone/luci-1,taiha/luci,Hostle/luci,nmav/luci,david-xiao/luci,jchuang1977/luci-1,chris5560/openwrt-luci,nmav/luci,RedSnake64/openwrt-luci-packages,maxrio/luci981213,thess/OpenWrt-luci,taiha/luci,ollie27/openwrt_luci,cappiewu/luci,rogerpueyo/luci,deepak78/new-luci,db260179/openwrt-bpi-r1-luci,nwf/openwrt-luci,kuoruan/lede-luci,joaofvieira/luci,Noltari/luci,oneru/luci,jlopenwrtluci/luci,tcatm/luci,david-xiao/luci,lcf258/openwrtcn,openwrt/luci,dwmw2/luci,jorgifumi/luci,hnyman/luci,oyido/luci,Noltari/luci,daofeng2015/luci,981213/luci-1,urueedi/luci,RuiChen1113/luci,fkooman/luci,jchuang1977/luci-1,NeoRaider/luci,tobiaswaldvogel/luci,artynet/luci,remakeelectric/luci,openwrt/luci,shangjiyu/luci-with-extra,nwf/openwrt-luci,teslamint/luci,daofeng2015/luci,shangjiyu/luci-with-extra,artynet/luci,rogerpueyo/luci,cshore-firmware/openwrt-luci,marcel-sch/luci,jorgifumi/luci,cshore/luci,aa65535/luci,rogerpueyo/luci,tobiaswaldvogel/luci,cshore-firmware/openwrt-luci,cappiewu/luci,chris5560/openwrt-luci,ollie27/openwrt_luci,urueedi/luci,dwmw2/luci,ollie27/openwrt_luci,hnyman/luci,urueedi/luci,sujeet14108/luci,chris5560/openwrt-luci,sujeet14108/luci,thesabbir/luci,nmav/luci,zhaoxx063/luci,openwrt-es/openwrt-luci,kuoruan/luci,Noltari/luci,hnyman/luci,wongsyrone/luci-1,aa65535/luci,ReclaimYourPrivacy/cloak-luci,teslamint/luci,bittorf/luci,cappiewu/luci,mumuqz/luci,forward619/luci,fkooman/luci,oneru/luci,kuoruan/luci,tcatm/luci,Noltari/luci,openwrt/luci,ff94315/luci-1,florian-shellfire/luci,RuiChen1113/luci,fkooman/luci,Hostle/luci,Sakura-Winkey/LuCI,bright-things/ionic-luci,dwmw2/luci,taiha/luci,zhaoxx063/luci,tobiaswaldvogel/luci,lcf258/openwrtcn,aa65535/luci,MinFu/luci,bright-things/ionic-luci,remakeelectric/luci,taiha/luci,Hostle/openwrt-luci-multi-user,oneru/luci,artynet/luci,taiha/luci,obsy/luci,Hostle/openwrt-luci-multi-user,Sakura-Winkey/LuCI,LazyZhu/openwrt-luci-trunk-mod,openwrt-es/openwrt-luci,male-puppies/luci,marcel-sch/luci,openwrt-es/openwrt-luci,nwf/openwrt-luci,oyido/luci,schidler/ionic-luci,florian-shellfire/luci,RedSnake64/openwrt-luci-packages,cshore/luci,taiha/luci,wongsyrone/luci-1,RuiChen1113/luci,kuoruan/lede-luci,marcel-sch/luci,ReclaimYourPrivacy/cloak-luci,lbthomsen/openwrt-luci,mumuqz/luci,schidler/ionic-luci,hnyman/luci,bittorf/luci,lcf258/openwrtcn,thess/OpenWrt-luci,obsy/luci,bright-things/ionic-luci,taiha/luci,zhaoxx063/luci,kuoruan/lede-luci,dwmw2/luci,deepak78/new-luci,bittorf/luci,thess/OpenWrt-luci,oyido/luci,artynet/luci,chris5560/openwrt-luci,RuiChen1113/luci,NeoRaider/luci,daofeng2015/luci,kuoruan/luci,cshore/luci,nmav/luci,chris5560/openwrt-luci,RedSnake64/openwrt-luci-packages,LuttyYang/luci,daofeng2015/luci,thess/OpenWrt-luci,bittorf/luci,Sakura-Winkey/LuCI,Noltari/luci,obsy/luci,MinFu/luci,male-puppies/luci,wongsyrone/luci-1,db260179/openwrt-bpi-r1-luci,981213/luci-1,ff94315/luci-1,maxrio/luci981213,florian-shellfire/luci,bright-things/ionic-luci,daofeng2015/luci,nmav/luci,thesabbir/luci,lcf258/openwrtcn,deepak78/new-luci,Hostle/openwrt-luci-multi-user,thesabbir/luci,deepak78/new-luci,openwrt/luci,LazyZhu/openwrt-luci-trunk-mod,ReclaimYourPrivacy/cloak-luci,joaofvieira/luci,cshore-firmware/openwrt-luci,sujeet14108/luci,obsy/luci,zhaoxx063/luci,wongsyrone/luci-1,joaofvieira/luci,Hostle/luci,lcf258/openwrtcn,schidler/ionic-luci,chris5560/openwrt-luci,Wedmer/luci,tobiaswaldvogel/luci,obsy/luci,lbthomsen/openwrt-luci,jchuang1977/luci-1,NeoRaider/luci,urueedi/luci,bittorf/luci,jorgifumi/luci,joaofvieira/luci,kuoruan/luci,ReclaimYourPrivacy/cloak-luci,artynet/luci,tcatm/luci,tobiaswaldvogel/luci,artynet/luci,LuttyYang/luci,Wedmer/luci,kuoruan/lede-luci,thesabbir/luci,david-xiao/luci,teslamint/luci,ollie27/openwrt_luci,florian-shellfire/luci,jlopenwrtluci/luci,schidler/ionic-luci,Hostle/luci,bittorf/luci,Hostle/luci,thess/OpenWrt-luci,oneru/luci,jorgifumi/luci,dwmw2/luci,ReclaimYourPrivacy/cloak-luci,LuttyYang/luci,RuiChen1113/luci,nmav/luci,nmav/luci,LuttyYang/luci,jchuang1977/luci-1,shangjiyu/luci-with-extra,jchuang1977/luci-1,hnyman/luci,slayerrensky/luci,RuiChen1113/luci,openwrt/luci,lcf258/openwrtcn,NeoRaider/luci,aa65535/luci,openwrt/luci,joaofvieira/luci,fkooman/luci,remakeelectric/luci,oneru/luci,sujeet14108/luci,nwf/openwrt-luci,Sakura-Winkey/LuCI,hnyman/luci,cshore/luci,oneru/luci,cshore/luci,shangjiyu/luci-with-extra,lbthomsen/openwrt-luci,openwrt-es/openwrt-luci,LuttyYang/luci,shangjiyu/luci-with-extra,cappiewu/luci,aa65535/luci,nwf/openwrt-luci,bright-things/ionic-luci,fkooman/luci,LazyZhu/openwrt-luci-trunk-mod,jlopenwrtluci/luci,981213/luci-1,nmav/luci,openwrt-es/openwrt-luci,RedSnake64/openwrt-luci-packages,MinFu/luci,jchuang1977/luci-1,marcel-sch/luci,cshore-firmware/openwrt-luci,openwrt/luci,oneru/luci,NeoRaider/luci,Hostle/openwrt-luci-multi-user,aa65535/luci,openwrt-es/openwrt-luci,maxrio/luci981213,mumuqz/luci,forward619/luci,Noltari/luci,Wedmer/luci,ollie27/openwrt_luci,florian-shellfire/luci,maxrio/luci981213,fkooman/luci,ollie27/openwrt_luci,oneru/luci,Noltari/luci,forward619/luci,taiha/luci,lcf258/openwrtcn,cshore/luci,cshore-firmware/openwrt-luci,ff94315/luci-1,Hostle/luci,jchuang1977/luci-1,jlopenwrtluci/luci,rogerpueyo/luci,zhaoxx063/luci,cshore-firmware/openwrt-luci,schidler/ionic-luci,jlopenwrtluci/luci,nwf/openwrt-luci,artynet/luci,wongsyrone/luci-1,david-xiao/luci,ollie27/openwrt_luci,cappiewu/luci,LazyZhu/openwrt-luci-trunk-mod,deepak78/new-luci,daofeng2015/luci,ff94315/luci-1,cshore-firmware/openwrt-luci,db260179/openwrt-bpi-r1-luci,marcel-sch/luci,981213/luci-1,rogerpueyo/luci,wongsyrone/luci-1,teslamint/luci,cappiewu/luci,tcatm/luci,florian-shellfire/luci,mumuqz/luci,urueedi/luci,thesabbir/luci,db260179/openwrt-bpi-r1-luci,artynet/luci,marcel-sch/luci,jorgifumi/luci,deepak78/new-luci,Hostle/openwrt-luci-multi-user,Sakura-Winkey/LuCI,RedSnake64/openwrt-luci-packages,remakeelectric/luci,joaofvieira/luci,Wedmer/luci,ff94315/luci-1,dwmw2/luci,marcel-sch/luci,dwmw2/luci,cappiewu/luci,cappiewu/luci,aa65535/luci,cshore/luci,lbthomsen/openwrt-luci,kuoruan/lede-luci,obsy/luci,lbthomsen/openwrt-luci,MinFu/luci,slayerrensky/luci,thesabbir/luci,nwf/openwrt-luci,teslamint/luci,jchuang1977/luci-1,Sakura-Winkey/LuCI,forward619/luci,david-xiao/luci,slayerrensky/luci,Noltari/luci,kuoruan/luci,deepak78/new-luci,oyido/luci,db260179/openwrt-bpi-r1-luci,male-puppies/luci,RuiChen1113/luci,shangjiyu/luci-with-extra,db260179/openwrt-bpi-r1-luci,MinFu/luci,981213/luci-1,jorgifumi/luci,urueedi/luci,aa65535/luci,RuiChen1113/luci,oyido/luci,hnyman/luci,openwrt-es/openwrt-luci,bright-things/ionic-luci,florian-shellfire/luci,oyido/luci,cshore-firmware/openwrt-luci,david-xiao/luci,tcatm/luci,rogerpueyo/luci,wongsyrone/luci-1,NeoRaider/luci,urueedi/luci,obsy/luci,forward619/luci,shangjiyu/luci-with-extra,tobiaswaldvogel/luci,bittorf/luci,nmav/luci,981213/luci-1,daofeng2015/luci,urueedi/luci,sujeet14108/luci,mumuqz/luci,joaofvieira/luci,lcf258/openwrtcn,Sakura-Winkey/LuCI,maxrio/luci981213,bright-things/ionic-luci,Hostle/openwrt-luci-multi-user,Wedmer/luci,schidler/ionic-luci,kuoruan/lede-luci,NeoRaider/luci,schidler/ionic-luci,daofeng2015/luci,Wedmer/luci,MinFu/luci,981213/luci-1,kuoruan/lede-luci,shangjiyu/luci-with-extra,slayerrensky/luci,remakeelectric/luci,artynet/luci,marcel-sch/luci,ReclaimYourPrivacy/cloak-luci,slayerrensky/luci,mumuqz/luci,chris5560/openwrt-luci,slayerrensky/luci,thess/OpenWrt-luci,zhaoxx063/luci,LazyZhu/openwrt-luci-trunk-mod,kuoruan/lede-luci,lcf258/openwrtcn,maxrio/luci981213,hnyman/luci,LazyZhu/openwrt-luci-trunk-mod,jlopenwrtluci/luci,fkooman/luci,nwf/openwrt-luci,tcatm/luci,openwrt/luci,male-puppies/luci,jorgifumi/luci,obsy/luci,deepak78/new-luci,kuoruan/luci,sujeet14108/luci,schidler/ionic-luci,lbthomsen/openwrt-luci,florian-shellfire/luci,Hostle/luci,dwmw2/luci,LuttyYang/luci,remakeelectric/luci,RedSnake64/openwrt-luci-packages,cshore/luci,jorgifumi/luci,NeoRaider/luci,male-puppies/luci,sujeet14108/luci