/systemd-251/src/network/ |
D | networkd-routing-policy-rule.c | 45 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 …]
|
D | networkd-json.c | 362 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 …]
|
D | networkd-routing-policy-rule.h | 58 RoutingPolicyRule *routing_policy_rule_free(RoutingPolicyRule *rule);
|
D | meson.build | 132 'networkd-routing-policy-rule.c', 133 'networkd-routing-policy-rule.h',
|
/systemd-251/src/binfmt/ |
D | binfmt.c | 35 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/ |
D | test-socket-bind.c | 44 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/ |
D | socket-bind.bpf.c | 71 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/ |
D | nspawn-oci.c | 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() [all …]
|
/systemd-251/rules.d/ |
D | meson.build | 68 rule = custom_target( variable 77 all_rules += rule
|
D | 71-seat.rules.in | 55 # rule is executed. To work around this we'll trigger the parent from
|
D | 78-sound-card.rules | 23 # As a workaround for this issue we have added the udev rule above which will
|
/systemd-251/test/ |
D | test-functions | 2494 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 …]
|
D | meson.build | 111 rule_syntax_check_py = find_program('rule-syntax-check.py') 113 test('rule-syntax-check',
|
/systemd-251/docs/ |
D | CGROUP_DELEGATION.md | 47 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 …]
|
D | USER_NAMES.md | 39 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
|
D | BLOCK_DEVICE_LOCKING.md | 33 used as trigger to re-run the rule-set for the device.
|
D | CONTRIBUTING.md | 67 of the maintenance process. But as a generic rule, existing dependencies should not be bumped witho…
|
D | CODING_STYLE.md | 151 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
|
D | USER_GROUP_API.md | 73 make look-ups efficient, and the simple rule of "first successful lookup wins"
|
/systemd-251/src/shared/ |
D | install.c | 3166 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/ |
D | meson.build | 192 [files('fuzz-udev-rule-parse-value.c')],
|
/systemd-251/shell-completion/bash/ |
D | journalctl | 135 # of the alternatives. Later on the rule above will
|
/systemd-251/test/fuzz/fuzz-udev-rules/ |
D | 78-sound-card.rules | 23 # As a workaround for this issue we have added the udev rule above which will
|
/systemd-251/shell-completion/zsh/ |
D | _udevadm | 72 '--udev[Print the udev event after the rule processing.]' \
|
/systemd-251/src/login/ |
D | logind-dbus.c | 1356 _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()
|