Commit f858dd50 by Wolfgang Bumiller

seccomp: re-add action parse error handling

This can happen when the 'errno' action can't parse its supplied number. Signed-off-by: 's avatarWolfgang Bumiller <w.bumiller@proxmox.com> Fixes: f67c94d0 ("seccomp: parse_v2_rules()")
parent 8cd059df
...@@ -257,6 +257,11 @@ static int parse_v2_rules(char *line, uint32_t def_action, ...@@ -257,6 +257,11 @@ static int parse_v2_rules(char *line, uint32_t def_action,
/* read optional action which follows the syscall */ /* read optional action which follows the syscall */
rules->action = get_v2_action(tmp, def_action); rules->action = get_v2_action(tmp, def_action);
if (rules->action == -1) {
ERROR("Failed to interpret action");
ret = -1;
goto out;
}
ret = 0; ret = 0;
rules->args_num = 0; rules->args_num = 0;
......
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