{
	"luci-mod-system-config": {
		"description": "Grant access to system configuration",
		"read": {
			"ubus": {
				"luci": [ "getInitList", "getLEDs", "getLocaltime", "getTimezones", "getUSBDevices" ],
				"system": [ "hostname" ]
			},
			"uci": [ "luci", "system" ]
		},
		"write": {
			"ubus": {
				"luci": [ "setInitAction", "setLocaltime", "setPassword" ],
				"system": [ "hostname" ]
			},
			"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": [ "setInitAction", "setLocaltime" ]
			},
			"uci": [ "dropbear" ]
		}
	},

	"luci-mod-system-init": {
		"description": "Grant access to startup configuration",
		"read": {
			"file": {
				"/etc/crontabs/root": [ "read" ],
				"/etc/rc.local": [ "read" ]
			},
			"ubus": {
				"file": [ "read" ],
				"luci": [ "getInitList" ]
			}
		},
		"write": {
			"file": {
				"/etc/rc.local": [ "write" ],
				"/etc/crontabs/root": [ "write" ],
				"/etc/init.d/cron reload": [ "exec" ]
			},
			"ubus": {
				"file": [ "write" ],
				"luci": [ "setInitAction" ]
			}
		}
	},

	"luci-mod-system-reboot": {
		"description": "Allow rebooting the device",
		"write": {
			"file": {
				"/sbin/reboot": [ "exec" ]
			},
			"ubus": {
				"file": [ "exec" ],
				"luci": [ "restart" ]
			}
		}
	}
}
