OSDN Git Service

autocore: fix build error&add missing rpcd
[immortalwrt/immortalwrt.git] / package / emortal / autocore / files / generic / rpcd_luci-mod-status.json
1 {
2         "luci-mod-status-realtime": {
3                 "description": "Grant access to realtime statistics",
4                 "read": {
5                         "ubus": {
6                                 "luci": [ "getConntrackList", "getRealtimeStats", "getCPUBench", "getCPUInfo", "getCPUUsage", "getETHInfo", "getOnlineUsers" ],
7                                 "network.rrdns": [ "lookup" ]
8                         }
9                 }
10         },
11
12         "luci-mod-status-processes": {
13                 "description": "Grant access to process status",
14                 "read": {
15                         "ubus": {
16                                 "luci": [ "getProcessList" ]
17                         }
18                 },
19                 "write": {
20                         "file": {
21                                 "/bin/kill": [ "exec" ]
22                         },
23                         "ubus": {
24                                 "file": [ "exec" ]
25                         }
26                 }
27         },
28
29         "luci-mod-status-logs": {
30                 "description": "Grant access to system logs",
31                 "read": {
32                         "cgi-io": [ "exec" ],
33                         "file": {
34                                 "/bin/dmesg -r": [ "exec" ],
35                                 "/sbin/logread": [ "stat" ],
36                                 "/sbin/logread -e ^": [ "exec" ],
37                                 "/usr/sbin/logread": [ "stat" ],
38                                 "/usr/sbin/logread -e ^": [ "exec" ]
39                         },
40                         "ubus": {
41                                 "file": [ "stat" ]
42                         }
43                 }
44         },
45
46         "luci-mod-status-routes": {
47                 "description": "Grant access to routing status",
48                 "read": {
49                         "file": {
50                                 "/sbin/ip -[46] neigh show": [ "exec" ],
51                                 "/sbin/ip -[46] route show table all": [ "exec" ],
52                                 "/sbin/ip -[46] rule show": [ "exec" ]
53                         },
54                         "ubus": {
55                                 "file": [ "exec" ]
56                         }
57                 }
58         },
59
60         "luci-mod-status-channel_analysis": {
61                 "description": "Grant access to wireless channel status",
62                 "read": {
63                         "ubus": {
64                                 "iwinfo": [ "info", "freqlist" ]
65                         }
66                 }
67         },
68
69         "luci-mod-status-firewall": {
70                 "description": "Grant access to firewall status",
71                 "read": {
72                         "cgi-io": [ "exec" ],
73                         "file": {
74                                 "/usr/sbin/nft --json list ruleset": [ "exec" ],
75                                 "/usr/sbin/iptables --line-numbers -w -nvxL -t *": [ "exec" ],
76                                 "/usr/sbin/ip6tables --line-numbers -w -nvxL -t *": [ "exec" ],
77                                 "/usr/sbin/ip6tables": [ "list" ]
78                         },
79                         "ubus": {
80                                 "file": [ "stat" ]
81                         }
82                 },
83                 "write": {
84                         "cgi-io": [ "exec" ],
85                         "file": {
86                                 "/etc/init.d/firewall restart": [ "exec" ],
87                                 "/usr/sbin/iptables -Z": [ "exec" ],
88                                 "/usr/sbin/ip6tables -Z": [ "exec" ]
89                         },
90                         "ubus": {
91                                 "file": [ "exec" ]
92                         }
93                 }
94         },
95
96         "luci-mod-status-index": {
97                 "description": "Grant access to main status display",
98                 "read": {
99                         "file": {
100                                 "/proc/sys/net/netfilter/nf_conntrack_count": [ "read" ],
101                                 "/proc/sys/net/netfilter/nf_conntrack_max": [ "read" ],
102                                 "/usr/lib/lua/luci/version.lua": [ "read" ],
103                                 "/www/luci-static/resources/view/status/include": [ "list" ]
104                         },
105                         "ubus": {
106                                 "file": [ "list", "read" ],
107                                 "system": [ "board", "info" ]
108                         }
109                 },
110                 "write": {
111                         "uci": [ "dhcp" ]
112                 }
113         },
114
115         "luci-mod-status-index-dhcp": {
116                 "description": "Grant access to DHCP status display",
117                 "read": {
118                         "ubus": {
119                                 "luci-rpc": [ "getDHCPLeases" ]
120                         }
121                 }
122         },
123
124         "luci-mod-status-index-dsl": {
125                 "description": "Grant access to DSL status display",
126                 "read": {
127                         "ubus": {
128                                 "dsl": [ "metrics" ]
129                         }
130                 }
131         },
132
133         "luci-mod-status-index-wifi": {
134                 "description": "Grant access to wireless status display",
135                 "read": {
136                         "ubus": {
137                                 "iwinfo": [ "assoclist" ]
138                         }
139                 },
140                 "write": {
141                         "ubus": {
142                                 "hostapd.*": [ "del_client", "wps_start", "wps_cancel", "wps_status" ]
143                         }
144                 }
145         }
146 }