|
各位大神,请教一下,就是在luci源代码中,每个luci项目都会有一个json文件,有的在menu.d文件下,有的在acl.d文件夹下。我想请问一下,这些json文件是用来干嘛的呢?
menu.d文件下的:
{
"admin/services/frps": {
"title": "frp Server",
"action": {
"type": "view",
"path": "frps"
},
"depends": {
"acl": [ "luci-app-frps" ]
}
}
}
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
acl.d文件下的:
{
"luci-app-frps": {
"description": "Grant access to LuCI app frps",
"read": {
"file": {
"/etc/group": [ "read" ],
"/etc/passwd": [ "read" ]
},
"ubus": {
"service": [ "list" ]
},
"uci": ["frps"]
},
"write": {
"uci": ["frps"]
}
}
}
|
|