Skip to content
Snippets Groups Projects
Commit e77d6e07 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

policy: warn when NYI action

parent b64d6ce7
Branches
Tags
No related merge requests found
......@@ -87,6 +87,10 @@ local function rpz_parse(action, path)
local name = ffi.string(parser.r_owner, parser.r_owner_length)
local action = ffi.string(parser.r_data, parser.r_data_length)
rules[name] = action_map[action]
-- Warn when NYI
if #name > 1 and not action_map[action] then
print(string.format('[ rpz ] %s:%d: unsupported policy action', path, tonumber(parser.line_counter)))
end
end
return rules
end
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment