Home
last modified time | relevance | path

Searched refs:rule (Results 1 – 25 of 30) sorted by relevance

12

/systemd-251/src/network/
Dnetworkd-routing-policy-rule.c45 RoutingPolicyRule *routing_policy_rule_free(RoutingPolicyRule *rule) { in routing_policy_rule_free() argument
46 if (!rule) in routing_policy_rule_free()
49 if (rule->network) { in routing_policy_rule_free()
50 assert(rule->section); in routing_policy_rule_free()
51 hashmap_remove(rule->network->rules_by_section, rule->section); in routing_policy_rule_free()
54 if (rule->manager) in routing_policy_rule_free()
55 set_remove(rule->manager->rules, rule); in routing_policy_rule_free()
57 config_section_free(rule->section); in routing_policy_rule_free()
58 free(rule->iif); in routing_policy_rule_free()
59 free(rule->oif); in routing_policy_rule_free()
[all …]
Dnetworkd-json.c362 static int routing_policy_rule_build_json(RoutingPolicyRule *rule, JsonVariant **ret) { in routing_policy_rule_build_json() argument
367 assert(rule); in routing_policy_rule_build_json()
368 assert(rule->manager); in routing_policy_rule_build_json()
371 r = manager_get_route_table_to_string(rule->manager, rule->table, &table); in routing_policy_rule_build_json()
375 r = route_protocol_to_string_alloc(rule->protocol, &protocol); in routing_policy_rule_build_json()
379 r = network_config_state_to_string_alloc(rule->state, &state); in routing_policy_rule_build_json()
384 JSON_BUILD_PAIR_INTEGER("Family", rule->family), in routing_policy_rule_build_json()
385 … JSON_BUILD_PAIR_IN_ADDR_NON_NULL("FromPrefix", &rule->from, rule->family), in routing_policy_rule_build_json()
386 JSON_BUILD_PAIR_CONDITION(in_addr_is_set(rule->family, &rule->from), in routing_policy_rule_build_json()
387 … "FromPrefixLength", JSON_BUILD_UNSIGNED(rule->from_prefixlen)), in routing_policy_rule_build_json()
[all …]
Dnetworkd-routing-policy-rule.h58 RoutingPolicyRule *routing_policy_rule_free(RoutingPolicyRule *rule);
Dmeson.build132 'networkd-routing-policy-rule.c',
133 'networkd-routing-policy-rule.h',
/systemd-251/src/binfmt/
Dbinfmt.c35 static int apply_rule(const char *filename, unsigned line, const char *rule) { in apply_rule() argument
38 assert(rule); in apply_rule()
39 assert(rule[0]); in apply_rule()
45 e = strchrnul(rule + 1, rule[0]); in apply_rule()
46 rulename = strndup(rule + 1, e - rule - 1); in apply_rule()
62 …r = write_string_file("/proc/sys/fs/binfmt_misc/register", rule, WRITE_STRING_FILE_DISABLE_BUFFER); in apply_rule()
/systemd-251/src/test/
Dtest-socket-bind.c44 STRV_FOREACH(rule, allow_rules) { in test_socket_bind()
47 *rule, &cc->socket_bind_allow, u); in test_socket_bind()
57 STRV_FOREACH(rule, deny_rules) { in test_socket_bind()
60 *rule, &cc->socket_bind_deny, u); in test_socket_bind()
/systemd-251/src/core/bpf/socket_bind/
Dsocket-bind.bpf.c71 const struct socket_bind_rule *rule = bpf_map_lookup_elem(rules, &key); in match_rules() local
75 if (!rule) in match_rules()
78 if (match(ctx->user_family, ctx->protocol, port, rule)) in match_rules()
/systemd-251/src/nspawn/
Dnspawn-oci.c1795 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()
[all …]
/systemd-251/rules.d/
Dmeson.build68 rule = custom_target( variable
77 all_rules += rule
D71-seat.rules.in55 # rule is executed. To work around this we'll trigger the parent from
D78-sound-card.rules23 # As a workaround for this issue we have added the udev rule above which will
/systemd-251/test/
Dtest-functions2494 local rule="${1:?}"
2497 sed -rn 's/^.*?PROGRAM==?"([^ "]+).*$/\1/p' "$rule" | while read -r prog; do
2502 … dinfo "Skipping program $prog used in udev rule $(basename "$rule") as it cannot be found"
2516 local found rule
2520 for rule in "$@"; do
2521 if [ "${rule#/}" = "$rule" ]; then
2523 if [[ -f "$r/$rule" ]]; then
2524 found="$r/$rule"
2531 if [[ -f "${r}${rule}" ]]; then
2532 found="${r}${rule}"
[all …]
Dmeson.build111 rule_syntax_check_py = find_program('rule-syntax-check.py')
113 test('rule-syntax-check',
/systemd-251/docs/
DCGROUP_DELEGATION.md47 1. The **no-processes-in-inner-nodes** rule: this means that it's not permitted
52 exceptions to this rule, though. E.g. the root cgroup is special and allows
56 2. The **single-writer** rule: this means that each cgroup only has a single
60 should manipulate it at the same time. This rule ensures that various pieces of
65 you violate rule #2, as the root cgroup is managed by systemd and hence off
68 Note that rule #1 is generally enforced by the kernel if cgroup v2 is used: as
69 soon as you add a process to a cgroup it is ensured the rule is not
70 violated. On cgroup v1 this rule didn't exist, and hence isn't enforced, even
250 unit and that conflicts with the single-writer rule.
323 *no-processes-in-inner-nodes* rule however: you have to move your main
[all …]
DUSER_NAMES.md39 though. This rule enforces a minimum length of one character but no maximum
43 `^[a-z_][a-z0-9_-]*[$]$`, i.e. is similar to the Debian/Ubuntu rule, but
69 names. An additional, common rule between both modes listed below is that empty
DBLOCK_DEVICE_LOCKING.md33 used as trigger to re-run the rule-set for the device.
DCONTRIBUTING.md67 of the maintenance process. But as a generic rule, existing dependencies should not be bumped witho…
DCODING_STYLE.md151 variables only on success. The rule is: never clobber return parameters on
587 been following this naming rule in most of our tools, and we should continue
DUSER_GROUP_API.md73 make look-ups efficient, and the simple rule of "first successful lookup wins"
/systemd-251/src/shared/
Dinstall.c3166 UnitFilePresetRule rule = {}; in read_presets() local
3196 rule = (UnitFilePresetRule) { in read_presets()
3211 rule = (UnitFilePresetRule) { in read_presets()
3217 if (rule.action) { in read_presets()
3221 ps.rules[ps.n_rules++] = rule; in read_presets()
3237 const UnitFilePresetRule rule, in pattern_match_multiple_instances() argument
3246 if (!ret || !rule.instances) in pattern_match_multiple_instances()
3252 if (!streq(rule.pattern, templated_name)) in pattern_match_multiple_instances()
3259 STRV_FOREACH(iter, rule.instances) { in pattern_match_multiple_instances()
3281 if (strv_find(rule.instances, instance_name)) in pattern_match_multiple_instances()
/systemd-251/src/udev/
Dmeson.build192 [files('fuzz-udev-rule-parse-value.c')],
/systemd-251/shell-completion/bash/
Djournalctl135 # of the alternatives. Later on the rule above will
/systemd-251/test/fuzz/fuzz-udev-rules/
D78-sound-card.rules23 # As a workaround for this issue we have added the udev rule above which will
/systemd-251/shell-completion/zsh/
D_udevadm72 '--udev[Print the udev event after the rule processing.]' \
/systemd-251/src/login/
Dlogind-dbus.c1356 _cleanup_free_ char *rule = NULL, *file = NULL; in attach_device() local
1377 …if (asprintf(&rule, "TAG==\"seat\", ENV{ID_FOR_SEAT}==\"%s\", ENV{ID_SEAT}=\"%s\"", id_for_seat, s… in attach_device()
1381 r = write_string_file_atomic_label(file, rule); in attach_device()

12