2020-05-12 16:16:36 +10:00
|
|
|
---@module security Security
|
2020-05-09 13:51:05 +10:00
|
|
|
local security = {}
|
|
|
|
|
2020-05-12 16:16:36 +10:00
|
|
|
---@func checkacl
|
|
|
|
---@arg permission string "The permission to check."
|
|
|
|
---@return boolean "True if the current process has this permission."
|
2020-05-09 13:51:05 +10:00
|
|
|
function security.checkacl(permission)
|
|
|
|
local perms = acl.get("group", thread.info().egid, {})
|
|
|
|
end
|
|
|
|
|
2020-05-12 16:16:36 +10:00
|
|
|
---@func getmode
|
|
|
|
---@return string "The current security mode."
|
2020-05-09 13:51:05 +10:00
|
|
|
function security.getmode()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function security.init()
|
|
|
|
klog("security", 1, "Security init started.")
|
|
|
|
|
2020-05-12 16:16:36 +10:00
|
|
|
end
|