Browse Source

treewide: add ACL annotations to menu entries

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich 4 years ago
parent
commit
8f34e105c0
50 changed files with 136 additions and 0 deletions
  1. 1 0
      applications/luci-app-adblock/root/usr/share/luci/menu.d/luci-app-adblock.json
  2. 3 0
      applications/luci-app-attendedsysupgrade/root/usr/share/luci/menu.d/luci-app-attendedsysupgrade.json
  3. 3 0
      applications/luci-app-bcp38/root/usr/share/luci/menu.d/luci-app-bcp38.json
  4. 3 0
      applications/luci-app-clamav/root/usr/share/luci/menu.d/luci-app-clamav.json
  5. 3 0
      applications/luci-app-coovachilli/root/usr/share/luci/menu.d/luci-app-coovachilli.json
  6. 1 0
      applications/luci-app-dcwapd/root/usr/share/luci/menu.d/luci-app-dcwapd.json
  7. 3 0
      applications/luci-app-ddns/root/usr/share/luci/menu.d/luci-app-ddns.json
  8. 1 0
      applications/luci-app-dump1090/root/usr/share/luci/menu.d/luci-app-dump1090.json
  9. 1 0
      applications/luci-app-dynapoint/root/usr/share/luci/menu.d/luci-app-dynapoint.json
  10. 1 0
      applications/luci-app-firewall/root/usr/share/luci/menu.d/luci-app-firewall.json
  11. 3 0
      applications/luci-app-frpc/root/usr/share/luci/menu.d/luci-app-frpc.json
  12. 3 0
      applications/luci-app-frps/root/usr/share/luci/menu.d/luci-app-frps.json
  13. 1 0
      applications/luci-app-fwknopd/root/usr/share/luci/menu.d/luci-app-fwknopd.json
  14. 1 0
      applications/luci-app-hd-idle/root/usr/share/luci/menu.d/luci-app-hd-idle.json
  15. 1 0
      applications/luci-app-ksmbd/root/usr/share/luci/menu.d/luci-app-ksmbd.json
  16. 1 0
      applications/luci-app-minidlna/root/usr/share/luci/menu.d/luci-app-minidlna.json
  17. 1 0
      applications/luci-app-mjpg-streamer/root/usr/share/luci/menu.d/luci-app-mjpg-streamer.json
  18. 3 0
      applications/luci-app-mosquitto/root/usr/share/luci/menu.d/luci-app-mosquitto.json
  19. 1 0
      applications/luci-app-nextdns/root/usr/share/luci/menu.d/luci-app-nextdns.json
  20. 3 0
      applications/luci-app-noddos/root/usr/share/luci/menu.d/luci-app-noddos.json
  21. 1 0
      applications/luci-app-ntpc/root/usr/share/luci/menu.d/luci-app-ntpc.json
  22. 1 0
      applications/luci-app-nut/root/usr/share/luci/menu.d/luci-app-nut.json
  23. 3 0
      applications/luci-app-opkg/root/usr/share/luci/menu.d/luci-app-opkg.json
  24. 1 0
      applications/luci-app-p910nd/root/usr/share/luci/menu.d/luci-app-p910nd.json
  25. 1 0
      applications/luci-app-polipo/root/usr/share/luci/menu.d/luci-app-polipo.json
  26. 1 0
      applications/luci-app-qos/root/usr/share/luci/menu.d/luci-app-qos.json
  27. 1 0
      applications/luci-app-rosy-file-server/root/usr/share/luci/menu.d/luci-app-rosy-file-server.json
  28. 1 0
      applications/luci-app-rp-pppoe-server/root/usr/share/luci/menu.d/luci-app-rp-pppoe-server.json
  29. 1 0
      applications/luci-app-samba/root/usr/share/luci/menu.d/luci-app-samba.json
  30. 1 0
      applications/luci-app-samba4/root/usr/share/luci/menu.d/luci-app-samba4.json
  31. 1 0
      applications/luci-app-ser2net/root/usr/share/luci/menu.d/luci-app-ser2net.json
  32. 3 0
      applications/luci-app-shadowsocks-libev/root/usr/share/luci/menu.d/luci-app-shadowsocks-libev.json
  33. 1 0
      applications/luci-app-shairplay/root/usr/share/luci/menu.d/luci-app-shairplay.json
  34. 1 0
      applications/luci-app-simple-adblock/root/usr/share/luci/menu.d/luci-app-simple-adblock.json
  35. 3 0
      applications/luci-app-snmpd/root/usr/share/luci/menu.d/luci-app-snmpd.json
  36. 3 0
      applications/luci-app-squid/root/usr/share/luci/menu.d/luci-app-squid.json
  37. 1 0
      applications/luci-app-statistics/root/usr/share/luci/menu.d/luci-app-statistics.json
  38. 1 0
      applications/luci-app-tinyproxy/root/usr/share/luci/menu.d/luci-app-tinyproxy.json
  39. 1 0
      applications/luci-app-ttyd/root/usr/share/luci/menu.d/luci-app-ttyd.json
  40. 1 0
      applications/luci-app-udpxy/root/usr/share/luci/menu.d/luci-app-udpxy.json
  41. 1 0
      applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json
  42. 1 0
      applications/luci-app-upnp/root/usr/share/luci/menu.d/luci-app-upnp.json
  43. 3 0
      applications/luci-app-vnstat/root/usr/share/luci/menu.d/luci-app-vnstat.json
  44. 1 0
      applications/luci-app-vnstat2/root/usr/share/luci/menu.d/luci-app-vnstat2.json
  45. 1 0
      applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json
  46. 3 0
      applications/luci-app-wol/root/usr/share/luci/menu.d/luci-app-wol.json
  47. 1 0
      applications/luci-app-yggdrasil/root/usr/share/luci/menu.d/luci-app-yggdrasil.json
  48. 13 0
      modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json
  49. 21 0
      modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json
  50. 25 0
      modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json

+ 1 - 0
applications/luci-app-adblock/root/usr/share/luci/menu.d/luci-app-adblock.json

@@ -7,6 +7,7 @@
 			"path": "admin/services/adblock/overview"
 		},
 		"depends": {
+			"acl": [ "luci-app-adblock" ],
 			"fs": {
 				"/usr/bin/adblock.sh": "executable",
 				"/etc/init.d/adblock": "executable"

+ 3 - 0
applications/luci-app-attendedsysupgrade/root/usr/share/luci/menu.d/luci-app-attendedsysupgrade.json

@@ -5,6 +5,9 @@
 		"action": {
 			"type": "template",
 			"path": "attendedsysupgrade"
+		},
+		"depends": {
+			"acl": [ "attendedsysupgrade" ]
 		}
 	}
 }

+ 3 - 0
applications/luci-app-bcp38/root/usr/share/luci/menu.d/luci-app-bcp38.json

@@ -6,6 +6,9 @@
 			"type": "cbi",
 			"path": "bcp38",
 			"post": { "cbi.submit": true }
+		},
+		"depends": {
+			"acl": [ "luci-app-bcp38" ]
 		}
 	}
 }

+ 3 - 0
applications/luci-app-clamav/root/usr/share/luci/menu.d/luci-app-clamav.json

@@ -5,6 +5,9 @@
 			"type": "cbi",
 			"path": "clamav",
 			"post": { "cbi.submit": true }
+		},
+		"depends": {
+			"acl": [ "luci-app-clamav" ]
 		}
 	}
 }

+ 3 - 0
applications/luci-app-coovachilli/root/usr/share/luci/menu.d/luci-app-coovachilli.json

@@ -6,6 +6,9 @@
 			"type": "cbi",
 			"path": "coovachilli",
 			"post": { "cbi.submit": true }
+		},
+		"depends": {
+			"acl": [ "luci-app-coovachilli" ]
 		}
 	},
 

+ 1 - 0
applications/luci-app-dcwapd/root/usr/share/luci/menu.d/luci-app-dcwapd.json

@@ -7,6 +7,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-dcwapd" ],
 			"uci": { "dcwapd": true }
 		}
 	}

+ 3 - 0
applications/luci-app-ddns/root/usr/share/luci/menu.d/luci-app-ddns.json

@@ -5,6 +5,9 @@
 		"action": {
 			"type": "view",
 			"path": "ddns/overview"
+		},
+		"depends": {
+			"acl": [ "luci-app-ddns" ]
 		}
 	}
 }

+ 1 - 0
applications/luci-app-dump1090/root/usr/share/luci/menu.d/luci-app-dump1090.json

@@ -7,6 +7,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-dump1090" ],
 			"uci": { "dump1090": true }
 		}
 	}

+ 1 - 0
applications/luci-app-dynapoint/root/usr/share/luci/menu.d/luci-app-dynapoint.json

@@ -7,6 +7,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-dynapoint" ],
 			"uci": { "dynapoint": true }
 		}
 	}

+ 1 - 0
applications/luci-app-firewall/root/usr/share/luci/menu.d/luci-app-firewall.json

@@ -7,6 +7,7 @@
 			"path": "admin/network/firewall/zones"
 		},
 		"depends": {
+			"acl": [ "luci-app-firewall" ],
 			"fs": { "/sbin/fw3": "executable" },
 			"uci": { "firewall": true }
 		}

+ 3 - 0
applications/luci-app-frpc/root/usr/share/luci/menu.d/luci-app-frpc.json

@@ -4,6 +4,9 @@
 		"action": {
 			"type": "view",
 			"path": "frpc"
+		},
+		"depends": {
+			"acl": [ "luci-app-frpc" ]
 		}
 	}
 }

+ 3 - 0
applications/luci-app-frps/root/usr/share/luci/menu.d/luci-app-frps.json

@@ -4,6 +4,9 @@
 		"action": {
 			"type": "view",
 			"path": "frps"
+		},
+		"depends": {
+			"acl": [ "luci-app-frps" ]
 		}
 	}
 }

+ 1 - 0
applications/luci-app-fwknopd/root/usr/share/luci/menu.d/luci-app-fwknopd.json

@@ -7,6 +7,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-fwknopd" ],
 			"uci": { "fwknopd": true }
 		}
 	}

+ 1 - 0
applications/luci-app-hd-idle/root/usr/share/luci/menu.d/luci-app-hd-idle.json

@@ -8,6 +8,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-hd-idle" ],
 			"uci": { "hd-idle": true }
 		}
 	}

+ 1 - 0
applications/luci-app-ksmbd/root/usr/share/luci/menu.d/luci-app-ksmbd.json

@@ -6,6 +6,7 @@
 			"path": "ksmbd"
 		},
 		"depends": {
+			"acl": [ "luci-app-ksmbd" ],
 			"uci": { "ksmbd": true }
 		}
 	}

+ 1 - 0
applications/luci-app-minidlna/root/usr/share/luci/menu.d/luci-app-minidlna.json

@@ -6,6 +6,7 @@
 			"path": "minidlna"
 		},
 		"depends": {
+			"acl": [ "luci-app-minidlna" ],
 			"uci": { "minidlna": true }
 		}
 	}

+ 1 - 0
applications/luci-app-mjpg-streamer/root/usr/share/luci/menu.d/luci-app-mjpg-streamer.json

@@ -7,6 +7,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-mjpg-streamer" ],
 			"uci": { "mjpg-streamer": true }
 		}
 	}

+ 3 - 0
applications/luci-app-mosquitto/root/usr/share/luci/menu.d/luci-app-mosquitto.json

@@ -5,6 +5,9 @@
 			"type": "cbi",
 			"path": "mosquitto",
 			"post": { "cbi.submit": true }
+		},
+		"depends": {
+			"acl": [ "luci-app-mosquitto" ]
 		}
 	}
 }

+ 1 - 0
applications/luci-app-nextdns/root/usr/share/luci/menu.d/luci-app-nextdns.json

@@ -6,6 +6,7 @@
 			"type": "firstchild"
 		},
 		"depends": {
+			"acl": [ "luci-app-nextdns" ],
 			"uci": { "nextdns": true }
 		}
 	},

+ 3 - 0
applications/luci-app-noddos/root/usr/share/luci/menu.d/luci-app-noddos.json

@@ -5,6 +5,9 @@
 		"action": {
 			"type": "template",
 			"path": "noddos/clients"
+		},
+		"depends": {
+			"acl": [ "luci-app-noddos" ]
 		}
 	},
 

+ 1 - 0
applications/luci-app-ntpc/root/usr/share/luci/menu.d/luci-app-ntpc.json

@@ -8,6 +8,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-ntpc" ],
 			"uci": { "ntpclient": true }
 		}
 	}

+ 1 - 0
applications/luci-app-nut/root/usr/share/luci/menu.d/luci-app-nut.json

@@ -5,6 +5,7 @@
 			"type": "firstchild"
 		},
 		"depends": {
+			"acl": [ "luci-app-nut" ],
 			"uci": [
 				{ "nut_server": true },
 				{ "nut_monitor": true },

+ 3 - 0
applications/luci-app-opkg/root/usr/share/luci/menu.d/luci-app-opkg.json

@@ -5,6 +5,9 @@
 		"action": {
 			"type": "view",
 			"path": "opkg"
+		},
+		"depends": {
+			"acl": [ "luci-app-opkg" ]
 		}
 	}
 }

+ 1 - 0
applications/luci-app-p910nd/root/usr/share/luci/menu.d/luci-app-p910nd.json

@@ -8,6 +8,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-p910nd" ],
 			"uci": { "p910nd": true }
 		}
 	}

+ 1 - 0
applications/luci-app-polipo/root/usr/share/luci/menu.d/luci-app-polipo.json

@@ -6,6 +6,7 @@
 			"path": "admin/services/polipo/config"
 		},
 		"depends": {
+			"acl": [ "luci-app-polipo" ],
 			"uci": { "polipo": true }
 		}
 	},

+ 1 - 0
applications/luci-app-qos/root/usr/share/luci/menu.d/luci-app-qos.json

@@ -7,6 +7,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-qos" ],
 			"uci": { "qos": true }
 		}
 	}

+ 1 - 0
applications/luci-app-rosy-file-server/root/usr/share/luci/menu.d/luci-app-rosy-file-server.json

@@ -8,6 +8,7 @@
 			"type": "firstchild"
 		},
 		"depends": {
+			"acl": [ "luci-app-rosy-file-server" ],
 			"uci": { "rosyfs": true }
 		}
 	},

+ 1 - 0
applications/luci-app-rp-pppoe-server/root/usr/share/luci/menu.d/luci-app-rp-pppoe-server.json

@@ -7,6 +7,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-rp-pppoe-server" ],
 			"uci": { "pppoe": true }
 		}
 	}

+ 1 - 0
applications/luci-app-samba/root/usr/share/luci/menu.d/luci-app-samba.json

@@ -7,6 +7,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-samba" ],
 			"uci": { "samba": true }
 		}
 	}

+ 1 - 0
applications/luci-app-samba4/root/usr/share/luci/menu.d/luci-app-samba4.json

@@ -6,6 +6,7 @@
 			"path": "samba4"
 		},
 		"depends": {
+			"acl": [ "luci-app-samba4" ],
 			"uci": { "samba4": true }
 		}
 	}

+ 1 - 0
applications/luci-app-ser2net/root/usr/share/luci/menu.d/luci-app-ser2net.json

@@ -5,6 +5,7 @@
 			"type": "firstchild"
 		},
 		"depends": {
+			"acl": [ "luci-app-ser2net" ],
 			"uci": { "ser2net": true }
 		}
 	},

+ 3 - 0
applications/luci-app-shadowsocks-libev/root/usr/share/luci/menu.d/luci-app-shadowsocks-libev.json

@@ -4,6 +4,9 @@
 		"order": 59,
 		"action": {
 			"type": "firstchild"
+		},
+		"depends": {
+			"acl": [ "luci-app-shadowsocks-libev" ]
 		}
 	},
 

+ 1 - 0
applications/luci-app-shairplay/root/usr/share/luci/menu.d/luci-app-shairplay.json

@@ -7,6 +7,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-shairplay" ],
 			"uci": { "shairplay": true }
 		}
 	}

+ 1 - 0
applications/luci-app-simple-adblock/root/usr/share/luci/menu.d/luci-app-simple-adblock.json

@@ -7,6 +7,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-simple-adblock" ],
 			"uci": { "simple-adblock": true }
 		}
 	}

+ 3 - 0
applications/luci-app-snmpd/root/usr/share/luci/menu.d/luci-app-snmpd.json

@@ -5,6 +5,9 @@
 			"type": "cbi",
 			"path": "snmpd",
 			"post": { "cbi.submit": true }
+		},
+		"depends": {
+			"acl": [ "luci-app-snmpd" ]
 		}
 	}
 }

+ 3 - 0
applications/luci-app-squid/root/usr/share/luci/menu.d/luci-app-squid.json

@@ -5,6 +5,9 @@
 			"type": "cbi",
 			"path": "squid",
 			"post": { "cbi.submit": true }
+		},
+		"depends": {
+			"acl": [ "luci-app-squid" ]
 		}
 	}
 }

+ 1 - 0
applications/luci-app-statistics/root/usr/share/luci/menu.d/luci-app-statistics.json

@@ -6,6 +6,7 @@
 			"type": "firstchild"
 		},
 		"depends": {
+			"acl": [ "luci-app-openvpn" ],
 			"uci": { "luci_statistics": true }
 		}
 	},

+ 1 - 0
applications/luci-app-tinyproxy/root/usr/share/luci/menu.d/luci-app-tinyproxy.json

@@ -5,6 +5,7 @@
 			"type": "firstchild"
 		},
 		"depends": {
+			"acl": [ "luci-app-tinyproxy" ],
 			"uci": { "tinyproxy": true }
 		}
 	},

+ 1 - 0
applications/luci-app-ttyd/root/usr/share/luci/menu.d/luci-app-ttyd.json

@@ -5,6 +5,7 @@
 			"type": "firstchild"
 		},
 		"depends": {
+			"acl": [ "luci-app-ttyd" ],
 			"uci": { "ttyd": true }
 		}
 	},

+ 1 - 0
applications/luci-app-udpxy/root/usr/share/luci/menu.d/luci-app-udpxy.json

@@ -7,6 +7,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-udpxy" ],
 			"uci": { "udpxy": true }
 		}
 	}

+ 1 - 0
applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json

@@ -7,6 +7,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-uhttpd" ],
 			"uci": { "uhttpd": true }
 		}
 	}

+ 1 - 0
applications/luci-app-upnp/root/usr/share/luci/menu.d/luci-app-upnp.json

@@ -6,6 +6,7 @@
 			"path": "upnp/upnp"
 		},
 		"depends": {
+			"acl": [ "luci-app-ddns" ],
 			"uci": { "upnpd": true }
 		}
 	}

+ 3 - 0
applications/luci-app-vnstat/root/usr/share/luci/menu.d/luci-app-vnstat.json

@@ -4,6 +4,9 @@
 		"order": 90,
 		"action": {
 			"type": "firstchild"
+		},
+		"depends": {
+			"acl": [ "luci-app-vnstat" ]
 		}
 	},
 

+ 1 - 0
applications/luci-app-vnstat2/root/usr/share/luci/menu.d/luci-app-vnstat2.json

@@ -6,6 +6,7 @@
 			"type": "firstchild"
 		},
 		"depends": {
+			"acl": [ "luci-app-vnstat2" ],
 			"fs": {
 				"/usr/bin/vnstat": "executable",
 				"/usr/bin/vnstati": "executable"

+ 1 - 0
applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json

@@ -8,6 +8,7 @@
 			"post": { "cbi.submit": true }
 		},
 		"depends": {
+			"acl": [ "luci-app-watchcat" ],
 			"uci": { "system": true }
 		}
 	}

+ 3 - 0
applications/luci-app-wol/root/usr/share/luci/menu.d/luci-app-wol.json

@@ -5,6 +5,9 @@
 		"action": {
 			"type": "view",
 			"path": "wol"
+		},
+		"depends": {
+			"acl": [ "luci-app-wol" ]
 		}
 	}
 }

+ 1 - 0
applications/luci-app-yggdrasil/root/usr/share/luci/menu.d/luci-app-yggdrasil.json

@@ -5,6 +5,7 @@
 			"type": "firstchild"
 		},
 		"depends": {
+			"acl": [ "luci-app-yggdrasil" ],
 			"uci": { "yggdrasil": true }
 		}
 	},

+ 13 - 0
modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json

@@ -7,6 +7,7 @@
 			"path": "network/switch"
 		},
 		"depends": {
+			"acl": [ "luci-mod-network-config" ],
 			"fs": { "/sbin/swconfig": "executable" },
 			"uci": { "network": { "@switch": true } }
 		}
@@ -20,6 +21,7 @@
 			"path": "network/wireless"
 		},
 		"depends": {
+			"acl": [ "luci-mod-network-config" ],
 			"uci": { "wireless": { "@wifi-device": true } }
 		}
 	},
@@ -38,6 +40,9 @@
 		"action": {
 			"type": "view",
 			"path": "network/interfaces"
+		},
+		"depends": {
+			"acl": [ "luci-mod-network-config" ]
 		}
 	},
 
@@ -49,6 +54,7 @@
 			"path": "network/dhcp"
 		},
 		"depends": {
+			"acl": [ "luci-mod-network-dhcp" ],
 			"uci": { "dhcp": true }
 		}
 	},
@@ -61,6 +67,7 @@
 			"path": "network/hosts"
 		},
 		"depends": {
+			"acl": [ "luci-mod-network-dhcp" ],
 			"uci": { "dhcp": true }
 		}
 	},
@@ -71,6 +78,9 @@
 		"action": {
 			"type": "view",
 			"path": "network/routes"
+		},
+		"depends": {
+			"acl": [ "luci-mod-network-config" ]
 		}
 	},
 
@@ -80,6 +90,9 @@
 		"action": {
 			"type": "view",
 			"path": "network/diagnostics"
+		},
+		"depends": {
+			"acl": [ "luci-mod-network-diagnostics" ]
 		}
 	}
 }

+ 21 - 0
modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json

@@ -5,6 +5,9 @@
 		"action": {
 			"type": "template",
 			"path": "admin_status/index"
+		},
+		"depends": {
+			"acl": [ "luci-mod-status-index" ]
 		}
 	},
 
@@ -14,6 +17,9 @@
 		"action": {
 			"type": "view",
 			"path": "status/iptables"
+		},
+		"depends": {
+			"acl": [ "luci-mod-status-firewall" ]
 		}
 	},
 
@@ -23,6 +29,9 @@
 		"action": {
 			"type": "view",
 			"path": "status/routes"
+		},
+		"depends": {
+			"acl": [ "luci-mod-status-routes" ]
 		}
 	},
 
@@ -32,6 +41,9 @@
 		"action": {
 			"type": "view",
 			"path": "status/syslog"
+		},
+		"depends": {
+			"acl": [ "luci-mod-status-logs" ]
 		}
 	},
 
@@ -41,6 +53,9 @@
 		"action": {
 			"type": "view",
 			"path": "status/dmesg"
+		},
+		"depends": {
+			"acl": [ "luci-mod-status-logs" ]
 		}
 	},
 
@@ -50,6 +65,9 @@
 		"action": {
 			"type": "view",
 			"path": "status/processes"
+		},
+		"depends": {
+			"acl": [ "luci-mod-status-processes" ]
 		}
 	},
 
@@ -59,6 +77,9 @@
 		"action": {
 			"type": "alias",
 			"path": "admin/status/realtime/load"
+		},
+		"depends": {
+			"acl": [ "luci-mod-status-realtime" ]
 		}
 	},
 

+ 25 - 0
modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json

@@ -5,6 +5,9 @@
 		"action": {
 			"type": "view",
 			"path": "system/system"
+		},
+		"depends": {
+			"acl": [ "luci-mod-system-config" ]
 		}
 	},
 
@@ -13,6 +16,9 @@
 		"order": 2,
 		"action": {
 			"type": "firstchild"
+		},
+		"depends": {
+			"acl": [ "luci-mod-system-config", "luci-mod-system-ssh" ]
 		}
 	},
 
@@ -22,6 +28,9 @@
 		"action": {
 			"type": "view",
 			"path": "system/password"
+		},
+		"depends": {
+			"acl": [ "luci-mod-system-config" ]
 		}
 	},
 
@@ -33,6 +42,7 @@
 			"path": "system/dropbear"
 		},
 		"depends": {
+			"acl": [ "luci-mod-system-ssh" ],
 			"uci": { "dropbear": true }
 		}
 	},
@@ -45,6 +55,7 @@
 			"path": "system/sshkeys"
 		},
 		"depends": {
+			"acl": [ "luci-mod-system-ssh" ],
 			"uci": { "dropbear": true }
 		}
 	},
@@ -55,6 +66,9 @@
 		"action": {
 			"type": "view",
 			"path": "system/startup"
+		},
+		"depends": {
+			"acl": [ "luci-mod-system-init" ]
 		}
 	},
 
@@ -64,6 +78,9 @@
 		"action": {
 			"type": "view",
 			"path": "system/crontab"
+		},
+		"depends": {
+			"acl": [ "luci-mod-system-cron" ]
 		}
 	},
 
@@ -75,6 +92,7 @@
 			"path": "system/mounts"
 		},
 		"depends": {
+			"acl": [ "luci-mod-system-mounts" ],
 			"fs": { "/sbin/block": "executable" }
 		}
 	},
@@ -87,6 +105,7 @@
 			"path": "system/leds"
 		},
 		"depends": {
+			"acl": [ "luci-mod-system-config" ],
 			"fs": { "/sys/class/leds": "directory" }
 		}
 	},
@@ -97,6 +116,9 @@
 		"action": {
 			"type": "view",
 			"path": "system/flash"
+		},
+		"depends": {
+			"acl": [ "luci-mod-system-flash" ]
 		}
 	},
 
@@ -106,6 +128,9 @@
 		"action": {
 			"type": "view",
 			"path": "system/reboot"
+		},
+		"depends": {
+			"acl": [ "luci-mod-system-reboot" ]
 		}
 	}
 }