Merge pull request #30633 from mrc0mmand/cocci-shenanigans

coccinelle: rework how we run the Coccinelle transformations
This commit is contained in:
Yu Watanabe
2023-12-26 05:45:58 +09:00
committed by GitHub
21 changed files with 88 additions and 71 deletions
+2 -4
View File
@@ -1837,10 +1837,8 @@ static int oci_seccomp_syscalls(const char *name, JsonVariant *v, JsonDispatchFl
if (r < 0)
return r;
if (strv_isempty(rule.names)) {
json_log(e, flags, 0, "System call name list is empty.");
return -EINVAL;
}
if (strv_isempty(rule.names))
return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "System call name list is empty.");
STRV_FOREACH(i, rule.names) {
int nr;