adapt acl to lua to bash conversion
authorSukru Senli <sukru.senli@inteno.se>
Fri, 23 Sep 2016 08:56:30 +0000 (10:56 +0200)
committerSukru Senli <sukru.senli@inteno.se>
Sat, 24 Sep 2016 11:22:20 +0000 (13:22 +0200)
19 files changed:
juci/access.json
plugins/juci-broadcom-dsl/access.json
plugins/juci-broadcom-ethernet/access.json
plugins/juci-broadcom-wl/access.json
plugins/juci-ddns/access.json
plugins/juci-diagnostics/access.json
plugins/juci-ethernet/access.json
plugins/juci-firewall-fw3/access.json
plugins/juci-generate-page/access.json
plugins/juci-inteno-provisioning/access.json
plugins/juci-inteno-voice-client/access.json
plugins/juci-minidlna/access.json
plugins/juci-mod-system/access.json
plugins/juci-netmode/access.json
plugins/juci-network-netifd/access.json
plugins/juci-samba/access.json
plugins/juci-sysupgrade/access.json
plugins/juci-upnp/access.json
plugins/juci-usb/access.json

index 49d5c4a..8a653de 100644 (file)
                "description": "Core functions for JUCI (TODO: remove)",
                "read": {
                        "ubus": {
-                               "/juci/system": [
-                                       "run"
-                                       /*"events"*/
-                               ], 
                                "juci.ui": [
                                        "*"
                                ],
index ec7eb45..4dba41b 100644 (file)
@@ -3,9 +3,8 @@
                "description": "Broadcom dsl plugin",
                "read": {
                        "ubus": {
-                               "/juci/broadcom.dsl": [
-                                       "run"
-                                       /*"status"*/
+                               "router": [
+                                       "dslstats"
                                ]
                        }, 
                        "uci": [
index a7b976e..11cc820 100644 (file)
@@ -25,9 +25,8 @@
                "description": "Broadcom ethernet plugin",
                "read": {
                        "ubus": {
-                               "/juci/ethernet": [
-                                       "run"
-                                       /*"adapters"*/
+                               "network.device": [
+                                       "status"
                                ] 
                        }, 
                        "uci": [
index 7023eb7..85b4bea 100644 (file)
                                        "status",
                                        "stop"
                                ], 
-                               "/juci/wireless": [
-                                       "run"
-                                       /*"defaults", */
-                                       /*"radios", */
-                                       /*"devices", */
-                                       /*"clients", */
-                                       /*"scan", */
-                                       /*"scanresults"*/
-                               ],
-                               "/juci/broadcom.wireless.lua": [
-                                       "run"
-                                       /*"scan", */
-                                       /*"scanresults"*/
+                               "juci.wireless": [
+                                       "defaults",
+                                       "scan", 
+                                       "scanresults",
+                                       "set_credentials"
                                ],
                                "router": [
                                        "wl",
index 212b765..33c9467 100644 (file)
@@ -7,9 +7,8 @@
                                "ddns"
                        ], 
                        "ubus": {
-                               "/juci/ddns": [ 
-                                       "run"
-                                       /*"providers"*/
+                               "juci.ddns": [ 
+                                       "providers"
                                ]
                        }
                },
index 7748ab1..3627c96 100644 (file)
@@ -3,13 +3,12 @@
                "description": "JUCI Diagnostics module",
                "read": {
                        "ubus": {
-                               "/juci/speedtest": [
+                               "juci.speedtest": [
                                        "run"
                                ],
-                               "/juci/diagnostics": [
-                                       "run"
-                                       /*"ping", */
-                                       /*"traceroute"*/
+                               "juci.diagnostics": [
+                                       "ping",
+                                       "traceroute"
                                ]
                        },
                        "uci": [
index ec76f31..db79547 100644 (file)
@@ -6,10 +6,6 @@
                                "network.device": [
                                        "status"
                                ]
-                               /*"/juci/ethernet": [
-                                       "run"
-                                       "adapters"
-                               ]*/
                        }
                }
        }
index c407613..e8d7eb2 100644 (file)
@@ -6,14 +6,9 @@
                                "network.interface": [
                                        "status"
                                ],
-                               "/juci/firewall": [
-                                       "run"
-                                       /*"excluded_ports"*/
+                               "juci.firewall": [
+                                       "excluded_ports"
                                ],
-                               "/juci/system.time": [
-                                       "run"
-                                       /*"timediff"*/
-                               ]
                        }, 
                        "uci": [
                                "firewall"
index 51debd2..35c7e66 100644 (file)
@@ -6,15 +6,12 @@
                                "minidlna"
                        ],
                        "ubus": {
-                               "/juci/minidlna": [
-                                       "run"
-                                       /*"folder_tree",*/
-                                       /*"autocomplete",*/
-                                       /*"status"*/
+                               "juci.minidlna": [
+                                       "status"
                                ],
-                               "/juci/system.service": [
-                                       "run"
-                                       /*"status"*/
+                               "juci.directory": [
+                                       "folder_tree",
+                                       "autocomplete"
                                ]
                        }
                },
index d120528..df1409d 100644 (file)
@@ -3,8 +3,8 @@
                "description": "JUCI inteno provisioning module",
                "read": {
                        "ubus": {
-                               "/juci/provisioning.iup": [
-                                       "run"
+                               "juci.iup": [
+                                       "backup"
                                ],
                                "file": [
                                        "read"
index 8b75d8b..1d27ac3 100644 (file)
@@ -9,14 +9,12 @@
                                "asterisk.call_log": [
                                        "list"
                                ],
-                               "/juci/voice_client": [
-                                       "run"
-                                       /*"get_trusted_ca",*/
-                                       /*"set_trusted_ca"*/
+                               "juci.voice_client": [
+                                       "get_trusted_ca",
+                                       "set_trusted_ca"
                                ],
-                               "/juci/system": [
-                                       "run"
-                                       /*"reboot"*/
+                               "juci.system": [
+                                       "reboot"
                                ]
                        }, 
                        "uci": [
index 6a4c268..04265da 100644 (file)
@@ -6,15 +6,15 @@
                                "minidlna"
                        ],
                        "ubus": {
-                               "/juci/minidlna": [
-                                       "run"
-                                       /*"folder_tree",
-                                       "autocomplete",
-                                       "status"*/
+                               "juci.minidlna": [
+                                       "status"
                                ],
-                               "/juci/system.service": [
-                                       "run"
-                                       /*"status"*/
+                               "juci.directory": [
+                                       "folder_tree",
+                                       "autocomplete"
+                               ],
+                               "juci.service" : [
+                                       "status"
                                ]
                        }
                },
index 84d31e9..bae531d 100644 (file)
                                        "write",
                                        "read"
                                ],
-                               "/juci/system": [
-                                       "run"
-                                       /*"defaultreset", */
-                                       /*"filesystems", */
-                                       /*"log", */
-                                       /*"reboot", */
-                                       /*"info"*/
+                               "juci.system": [
+                                       "defaultreset", 
+                                       "reboot",
+                                       "listusers",
+                                       "zonelist", 
                                ], 
                                "session": [
                                        "list"
                                ],
-                               "/juci/system.upgrade": [
-                                       "run"
-                                       /*"check", */
-                                       /*"test", */
-                                       /*"start", */
-                                       /*"clean"*/
-                               ], 
-                               "/juci/system.user": [
+                               "juci.sysupgrade": [
                                        "run"
-                                       /*"setpassword",*/
-                                       /*"listusers"*/
+                                       "check", 
+                                       "test", 
+                                       "start"
                                ], 
-                               "/juci/system.time": [
-                                       "run"
-                                       /*"zonelist", */
-                                       /*"get", */
-                                       /*"set"*/
-                               ], 
-                               "/juci/system.conf": [
-                                       "run"
-                                       /*"restore", */
-                                       /*"defaultreset", */
-                                       /*"features",*/
-                                       /*"list"*/
+
+                               "juci.sysupgrade": [
+                                       "restore-backup", 
+                                       "features"
                                ], 
-                               "/juci/system.process": [
-                                       "run"
-                                       /*"list"*/
-                               ],
-                               "/juci/system.service": [
-                                       "run"
-                                       /*"list",*/
-                                       /*"start",*/
-                                       /*"stop",*/
-                                       /*"enable",*/
-                                       /*"disable",*/
-                                       /*"reload"*/
+                               "juci.service": [
+                                       "list",
+                                       "start",
+                                       "stop",
+                                       "enable",
+                                       "disable",
+                                       "reload"
                                ],
                                "router": [
                                        "info",
                                        "password_set",
-                                       "filesystem"
+                                       "filesystem",
+                                       "processes"
                                ],
                                "system": [
                                        "info",
                        "ubus": {
                                "/juci/system.service": [
                                        "run"
-                                       /*"start",*/
-                                       /*"stop",*/
-                                       /*"enable",*/
-                                       /*"disable",*/
-                                       /*"reload"*/
+                                       "start",
+                                       "stop",
+                                       "enable",
+                                       "disable",
+                                       "reload"
                                ]
                        },
                        "uci": [
index ea52725..e08b2c2 100644 (file)
@@ -3,13 +3,8 @@
                "description": "JUCI Netmode support module for iopsys",
                "read": {
                        "ubus": {
-                               "/juci/repeater": [
-                                       "run"
-                                       /*set*/
-                               ],
-                               "/juci/netmode": [
-                                       "run"
-                                       /*"select"*/
+                               "juci.wireless": [
+                                       "set_credentials"
                                ]
                        }, 
                        "uci": [
index 9767e99..648a261 100644 (file)
@@ -3,27 +3,21 @@
                "description": "JUCI Network Configuration module",
                "read": {
                        "ubus": {
-                               "/juci/network": [
-                                       "run"
-                                       /*"clients", 
+                               "juci.network": [
                                        "load", 
                                        "nat_table", 
                                        "nameservers",
                                        "services",
-                                       "protocols"*/
-                               ], 
-                               "/juci/modems": [
-                                       "run"
-                                       /*"list",
-                                       "list4g"*/
-                               ],
-                               "/juci/network.status": [ 
-                                       "run"
-                                       /*"arp", 
+                                       "protocols",
+                                       "arp", 
                                        "ipv4routes", 
                                        "ipv6routes",
-                                       "ipv6neigh"*/
+                                       "ipv6neigh"
                                ], 
+                               "juci.modems": [
+                                       "list",
+                                       "list4g"
+                               ],
                                "network.interface": [
                                        "dump"
                                ], 
index 71d476e..87e5cab 100644 (file)
@@ -6,10 +6,9 @@
                                "samba"
                        ],
                        "ubus": {
-                               "/juci/samba": [
-                                       "run"
-                                       /*"folder_tree",*/
-                                       /*"autocomplete"*/
+                               "juci.directory": [
+                                       "folder_tree",
+                                       "autocomplete"
                                ]
                        }
                }, 
                                "samba"
                        ],
                        "ubus": {
-                               "/juci/samba": [
-                                       "run"
-                                       /*"folder_tree",*/
-                                       /*"autocomplete"*/
+                               "juci.directory": [
+                                       "folder_tree",
+                                       "autocomplete"
                                ]
                        }
                }
index 01b0f4d..1cbc522 100644 (file)
@@ -6,12 +6,10 @@
                                "file": [
                                        "write"
                                ],
-                               "/juci/system.upgrade": [
-                                       "run"
-                                       /*"check", */
-                                       /*"test", */
-                                       /*"start", */
-                                       /*"clean"*/
+                               "juci.sysupgrade": [
+                                       "check", 
+                                       "test", 
+                                       "start"
                                ]
                        }, 
                        "uci": [ "system" ],
                                "file": [
                                        "write"
                                ],
-                               "/juci/system.upgrade": [
-                                       "run"
-                                       /*"check", */
-                                       /*"test", */
-                                       /*"start", */
-                                       /*"clean"*/
+                               "juci.sysupgrade": [
+                                       "check", 
+                                       "test", 
+                                       "start"
                                ]
                        }
                }
index 32a954f..d4229c5 100644 (file)
@@ -3,9 +3,8 @@
                "description": "JUCI UPNPD module",
                "read": {
                        "ubus": {       
-                               "/juci/upnpd": [
-                                       "run"
-                                       /*"ports"*/
+                               "juci.upnpd": [
+                                       "ports"
                                ]
                        }, 
                        "uci": [
index 8705734..67f1b6c 100644 (file)
@@ -5,10 +5,6 @@
                        "ubus": {
                                "router":[
                                        "usb"
-                               ],
-                               "/juci/usb": [
-                                       "run"
-                                       /*"list"*/
                                ]
                        },
                        "owsd": [