Lines Matching refs:rule
1795 static void syscall_rule_free(struct syscall_rule *rule) { in syscall_rule_free() argument
1796 assert(rule); in syscall_rule_free()
1798 strv_free(rule->names); in syscall_rule_free()
1799 free(rule->arguments); in syscall_rule_free()
1829 struct syscall_rule *rule = userdata; in oci_seccomp_args() local
1833 assert(rule); in oci_seccomp_args()
1847 … a = reallocarray(rule->arguments, rule->n_arguments + 1, sizeof(struct syscall_rule)); in oci_seccomp_args()
1851 rule->arguments = a; in oci_seccomp_args()
1852 p = rule->arguments + rule->n_arguments; in oci_seccomp_args()
1873 rule->n_arguments++; in oci_seccomp_args()
1892 struct syscall_rule rule = { in oci_seccomp_syscalls() local
1896 r = json_dispatch(e, table, oci_unexpected, flags, &rule); in oci_seccomp_syscalls()
1900 if (strv_isempty(rule.names)) { in oci_seccomp_syscalls()
1906 STRV_FOREACH(i, rule.names) { in oci_seccomp_syscalls()
1915 … r = seccomp_rule_add_array(sc, rule.action, nr, rule.n_arguments, rule.arguments); in oci_seccomp_syscalls()
1920 syscall_rule_free(&rule); in oci_seccomp_syscalls()
1924 syscall_rule_free(&rule); in oci_seccomp_syscalls()