Commit e77d6e07 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

policy: warn when NYI action

parent b64d6ce7
...@@ -87,6 +87,10 @@ local function rpz_parse(action, path) ...@@ -87,6 +87,10 @@ local function rpz_parse(action, path)
local name = ffi.string(parser.r_owner, parser.r_owner_length) local name = ffi.string(parser.r_owner, parser.r_owner_length)
local action = ffi.string(parser.r_data, parser.r_data_length) local action = ffi.string(parser.r_data, parser.r_data_length)
rules[name] = action_map[action] 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 end
return rules return rules
end end
......
Markdown is supported
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