Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

基于javascript的luci-app-smartdns,不适配官方master最新的luci,提示权限问题!!! #17

Open
zxlhhyccc opened this issue Apr 14, 2020 · 5 comments

Comments

@zxlhhyccc
Copy link
Contributor

image

@pymumu
Copy link
Owner

pymumu commented Apr 14, 2020

这个是由ACL控制的。smartdns的配置已经进行了设置,如果有问题,那就可能是安装包不对,或你的版本有问题。或者最新的main上游做了限制。

可以尝试修改上面的权限控制看看。

@openips
Copy link

openips commented Apr 15, 2020

没用 最新的代码还是这样的问题

@pymumu
Copy link
Owner

pymumu commented Apr 15, 2020

openwrt javascript的luci是新功能,上游也在不停修改,要稳定可以用compat版本

@zxlhhyccc
Copy link
Contributor Author

openwrt javascript的luci是新功能,上游也在不停修改,要稳定可以用compat版本

暂时用回compat版本,加acl就是了

@ccbty
Copy link

ccbty commented Apr 27, 2020

修改后的配置可适配官方master

{
"luci-app-smartdns": {
"description": "Grant access to LuCI app smartdns",
"read": {
"file": {
"/etc/smartdns/": [ "read" ],
"/usr/sbin/iptables -t nat -nL PREROUTING": [ "exec" ],
"/usr/sbin/ip6tables -t nat -nL PREROUTING": [ "exec" ],
"/usr/sbin/smartdns": [ "exec" ]
},
"ubus": {
"service": [ "list" ]
},
"uci": [ "smartdns" ]
},
"write": {
"file": {
"/etc/smartdns/
": [ "write" ]
},
"uci": [ "smartdns" ]
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants