-
Notifications
You must be signed in to change notification settings - Fork 33
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
luci-app-ffwizard-berlin: invalid permission #816
Comments
I think this is just wrong: It has to be local name = uci:get("profile_"..n, "profile", "name") or "?" |
Sometimes the ffwizard is accessing config files via the
Now if we do local name = uci:get("profile_"..n, "profile", "name") or "?" we access the name of the community via the If we do local name = uci:get_first("profile_"..n, "community", "name") or "?" we access the name of the community via the Making things very complicated somtimes the type is called I really have no clue why local name = uci:get_first("profile_"..n, "community", "name") or "?" is not working. I need help with that. ;) |
We need permission
|
We have to add permission in {
"luci-app-ffwizard-berlin": {
"description": "Super user access role",
"read": {
"uci": [ "profile_*" ],
},
"write": {
}
}
} |
To be honest, all this was confusing me too - always. EDIT: but fixing this "misuse" should be discussed in a separate issue / PR. |
A bit more verbose problem description would be helpful (for others) to reproduce / verify the problem. I personally have not ran the wizard for some long time. I suggest to use the Bug-template. I assume the problem you have seen is very similar to freifunk/openwrt-packages#23. The solution provided by you seem to relate to the OpenWrt-Forum thread referenced by freifunk/openwrt-packages#23 (comment). |
I added some useful information and code to debug the luci app.
I think my solution in the PR is a better way? :) For me it seems more secure. |
Sure, the libuci-lua way might not be able to update uci-settings, as the frontend is not running as root. Also having one lib for reading uci-values and another to write the files via rpc will become really confusing. |
Using the latest OpenWrt Master to build an Image, the luci-app-ffwizard-berlin can not access important uci configurations and files.
If you add more verbose debug output by placing, e.g.
E.g. the App can not access the
/etc/config/profiles_*
. https://github.com/freifunk-berlin/firmware-packages/tree/master/utils/luci-app-ffwizard-berlin/root/usr/share/rpcd/acl.dThe text was updated successfully, but these errors were encountered: