⛄ Sync 2026-04-23 20:32:35

This commit is contained in:
github-actions[bot] committed 2026-04-23 20:32:35 +08:00
1 parent ac97aa196d
commit 618f49f6ca
206 files changed
+725671

No files matched your search

@@ -0,0 +1,161 @@
{
"admin/system/system": {
"title": "System",
"order": 1,
"action": {
"type": "view",
"path": "system/system"
},
"depends": {
"acl": [ "luci-mod-system-config" ]
}
},
"admin/system/admin": {
"title": "Administration",
"order": 2,
"action": {
"type": "firstchild"
},
"depends": {
"acl": [ "luci-mod-system-config", "luci-mod-system-ssh" ]
}
},
"admin/system/admin/password": {
"title": "Router Password",
"order": 1,
"action": {
"type": "view",
"path": "system/password"
},
"depends": {
"acl": [ "luci-mod-system-config" ]
}
},
"admin/system/admin/dropbear": {
"title": "SSH Access",
"order": 2,
"action": {
"type": "view",
"path": "system/dropbear"
},
"depends": {
"acl": [ "luci-mod-system-ssh" ],
"fs": { "/usr/sbin/dropbear": "executable" }
}
},
"admin/system/admin/sshkeys": {
"title": "SSH-Keys",
"order": 3,
"action": {
"type": "view",
"path": "system/sshkeys"
},
"depends": {
"acl": [ "luci-mod-system-ssh" ],
"fs": { "/usr/sbin/dropbear": "executable" }
}
},
"admin/system/admin/uhttpd": {
"title": "HTTP(S) Access",
"order": 4,
"action": {
"type": "view",
"path": "system/uhttpd"
},
"depends": {
"acl": [ "luci-mod-system-uhttpd" ],
"fs": { "/usr/sbin/uhttpd": "executable" }
}
},
"admin/system/admin/repokeys": {
"title": "Repo Public Keys",
"order": 5,
"action": {
"type": "view",
"path": "system/repokeys"
},
"depends": {
"acl": [ "luci-mod-system-repokeys" ]
}
},
"admin/system/startup": {
"title": "Startup",
"order": 45,
"action": {
"type": "view",
"path": "system/startup"
},
"depends": {
"acl": [ "luci-mod-system-init" ]
}
},
"admin/system/crontab": {
"title": "Scheduled Tasks",
"order": 46,
"action": {
"type": "view",
"path": "system/crontab"
},
"depends": {
"acl": [ "luci-mod-system-cron" ]
}
},
"admin/system/mounts": {
"title": "Mount Points",
"order": 50,
"action": {
"type": "view",
"path": "system/mounts"
},
"depends": {
"acl": [ "luci-mod-system-mounts" ],
"fs": { "/sbin/block": "executable" }
}
},
"admin/system/leds": {
"title": "LED Configuration",
"order": 60,
"action": {
"type": "view",
"path": "system/leds"
},
"depends": {
"acl": [ "luci-mod-system-config" ],
"fs": { "/sys/class/leds": "directory" }
}
},
"admin/system/flash": {
"title": "Backup / Flash Firmware",
"order": 70,
"action": {
"type": "view",
"path": "system/flash"
},
"depends": {
"acl": [ "luci-mod-system-flash" ]
}
},
"admin/system/reboot": {
"title": "Reboot",
"order": 90,
"action": {
"type": "view",
"path": "system/reboot"
},
"depends": {
"acl": [ "luci-mod-system-reboot" ]
}
}
}
@@ -0,0 +1,208 @@
{
"luci-mod-system-config": {
"description": "Grant access to system configuration",
"read": {
"file": {
"/sys/block/zram0/comp_algorithm": [ "read" ]
},
"ubus": {
"file": [ "read" ],
"luci": [ "getLEDs", "getTimezones", "getUSBDevices", "getUnixtime" ],
"rc": [ "list" ]
},
"uci": [ "luci", "system" ]
},
"write": {
"ubus": {
"luci": [ "setLocaltime", "setPassword" ],
"rc": [ "init" ]
},
"uci": [ "luci", "system" ]
}
},
"luci-mod-system-ssh": {
"description": "Grant access to SSH configuration",
"read": {
"file": {
"/etc/dropbear/authorized_keys": [ "read" ]
},
"ubus": {
"file": [ "read" ]
},
"uci": [ "dropbear" ]
},
"write": {
"file": {
"/etc/dropbear/authorized_keys": [ "write" ]
},
"ubus": {
"file": [ "write" ],
"luci": [ "setLocaltime" ]
},
"uci": [ "dropbear" ]
}
},
"luci-mod-system-repokeys": {
"description": "Grant access to Software Repository Public Key management",
"read": {
"file": {
"/etc/opkg/keys/*": [ "read" ],
"/etc/apk/keys/*": [ "read" ]
}
},
"write": {
"file": {
"/etc/opkg/keys/*": [ "write" ],
"/etc/apk/keys/*": [ "write" ]
}
}
},
"luci-mod-system-uhttpd": {
"description": "Grant access to uHTTPd configuration",
"read": {
"uci": [ "uhttpd" ]
},
"write": {
"uci": [ "uhttpd" ]
}
},
"luci-mod-system-init": {
"description": "Grant access to startup configuration",
"read": {
"file": {
"/etc/rc.local": [ "read" ]
},
"ubus": {
"file": [ "read" ],
"rc": [ "list" ]
}
},
"write": {
"file": {
"/etc/rc.local": [ "write" ]
},
"ubus": {
"file": [ "write" ],
"rc": [ "init" ]
}
}
},
"luci-mod-system-cron": {
"description": "Grant access to crontab configuration",
"read": {
"file": {
"/etc/crontabs/root": [ "read" ]
},
"ubus": {
"file": [ "read" ]
}
},
"write": {
"file": {
"/etc/crontabs/root": [ "write" ],
"/etc/init.d/cron reload": [ "exec" ]
},
"ubus": {
"file": [ "write" ]
}
}
},
"luci-mod-system-mounts": {
"description": "Grant access to mount configuration",
"read": {
"file": {
"/etc/filesystems": [ "read" ],
"/proc/filesystems": [ "read" ],
"/usr/bin/btrfsck": [ "list" ],
"/usr/bin/ntfsfix": [ "list" ],
"/usr/sbin/e2fsck": [ "list" ],
"/usr/sbin/fsck.f2fs": [ "list" ],
"/usr/sbin/fsck.fat": [ "list" ]
},
"ubus": {
"file": [ "read", "stat" ],
"luci": [ "getBlockDevices", "getMountPoints" ]
},
"uci": [ "fstab" ]
},
"write": {
"file": {
"/etc/crontabs/root": [ "write" ],
"/bin/umount": [ "exec" ],
"/sbin/block": [ "exec" ]
},
"ubus": {
"file": [ "exec", "write" ],
"luci": [ "setBlockDetect" ]
},
"uci": [ "fstab" ]
}
},
"luci-mod-system-flash": {
"description": "Grant access to flash operations",
"read": {
"cgi-io": [ "backup", "download" ],
"file": {
"/dev/mtdblock[0-9]*": [ "read" ],
"/etc/sysupgrade.conf": [ "read" ],
"/lib/upgrade/platform.sh": [ "list" ],
"/proc/mounts": [ "read" ],
"/proc/mtd": [ "read" ],
"/proc/partitions": [ "read" ],
"/proc/sys/kernel/hostname": [ "read" ],
"/sbin/sysupgrade --list-backup": [ "exec" ]
},
"ubus": {
"file": [ "exec", "read", "stat" ]
}
},
"write": {
"cgi-io": [ "upload" ],
"file": {
"/bin/tar -tzf /tmp/backup.tar.gz": [ "exec" ],
"/etc/sysupgrade.conf": [ "write" ],
"/sbin/firstboot -r -y": [ "exec" ],
"/sbin/reboot": [ "exec" ],
"/sbin/sysupgrade --force /tmp/firmware.bin": [ "exec" ],
"/sbin/sysupgrade -n --force /tmp/firmware.bin": [ "exec" ],
"/sbin/sysupgrade --force -k /tmp/firmware.bin": [ "exec" ],
"/sbin/sysupgrade --force -u /tmp/firmware.bin": [ "exec" ],
"/sbin/sysupgrade --force -u -k /tmp/firmware.bin": [ "exec" ],
"/sbin/sysupgrade -n /tmp/firmware.bin": [ "exec" ],
"/sbin/sysupgrade -k /tmp/firmware.bin": [ "exec" ],
"/sbin/sysupgrade -u /tmp/firmware.bin": [ "exec" ],
"/sbin/sysupgrade -u -k /tmp/firmware.bin": [ "exec" ],
"/sbin/sysupgrade --restore-backup /tmp/backup.tar.gz": [ "exec" ],
"/sbin/sysupgrade --test /tmp/firmware.bin": [ "exec" ],
"/sbin/sysupgrade /tmp/firmware.bin": [ "exec" ],
"/tmp/backup.tar.gz": [ "write" ],
"/tmp/firmware.bin": [ "write" ]
},
"ubus": {
"file": [ "exec", "remove", "write" ],
"system": [ "validate_firmware_image" ]
}
}
},
"luci-mod-system-reboot": {
"description": "Allow rebooting the device",
"write": {
"file": {
"/sbin/reboot": [ "exec" ]
},
"ubus": {
"file": [ "exec" ],
"system": [ "reboot" ]
}
}
}
}
@@ -0,0 +1,4 @@
{
"config": "dropbear",
"init": "dropbear"
}
@@ -0,0 +1,4 @@
{
"config": "fstab",
"exec": "/sbin/block mount"
}
@@ -0,0 +1,9 @@
{
"config": "system",
"init": "led",
"exec": "/etc/init.d/log reload",
"affects": [
"luci_statistics",
"dhcp"
]
}