Repository navigation
luci-mod-system, luci-mod-status: permit sysupgrade --create-backup and legacy iptables-save - #8947
JuliusBairaktaris wants to merge 2 commits into
Conversation
|
@jow- — review ping. One-line ACL grant permitting exactly Needed by openwrt/cgi-io#6, which is in turn needed by openwrt/openwrt#24558. |
openwrt-ai
left a comment
There was a problem hiding this comment.
Reviewed 2 new commits. Both commit messages match their diffs, both files stay valid JSON, and the ACL strings are in the correct read sections. Two inline notes — the main one is a question about whether rpcd's file.exec can actually carry a backup tarball, since it is fully buffered and returns stdout as a NUL-terminated string.
Generated by Claude Code
7b773aa to
b63385b
Compare
b63385b to
04dd79b
Compare
openwrt/cgi-io#6 moves archive creation to rpcd's file exec method so that it keeps working when uhttpd runs as a non-root user, and openwrt/rpcd#40 returns the child's stdout as a file descriptor so the archive is streamed rather than buffered into the ubus reply. rpcd matches the requested command against the caller's session ACL, so the grant names the exact command line. Depends on openwrt/cgi-io#6 and openwrt/rpcd#40. Assisted-by: Claude:claude-opus-5 Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Only the non-legacy iptables-save pair is in the session ACL, but the firewall status page runs the legacy pair when those binaries exist. Assisted-by: Claude:claude-opus-5 Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
04dd79b to
88ab465
Compare
Two ACL fixes.
luci-mod-status: the firewall status page runs
iptables-legacy-saveandip6tables-legacy-savewhen they exist, but only the non-legacy commands arein the ACL. cgi-io refuses the call, LuCI turns the error into an empty string,
and the legacy tables show up empty. This adds the legacy commands. It fixes
current master on its own. I found this by reading the code and have not
reproduced it on a device.
luci-mod-system: adds
/sbin/sysupgrade --create-backup -to the backup ACL.It only takes effect once openwrt/cgi-io#6 runs the backup through rpcd (with
openwrt/rpcd#40), which is needed for a non-root uhttpd
(openwrt/openwrt#24740).
Should the luci-mod-status commit go in now and the luci-mod-system one wait
for cgi-io#6?
I used AI to help me write the change.