]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cgroup: typo fix initial_restric_ifaces_link_fds → initial_restrict_ifaces_link_fds
authorLennart Poettering <lennart@poettering.net>
Mon, 19 Feb 2024 15:37:27 +0000 (16:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 19 Feb 2024 18:18:21 +0000 (19:18 +0100)
src/core/bpf-restrict-ifaces.c
src/core/cgroup.c
src/core/cgroup.h

index 1156e6af79e45aa06aae6de284e56e52166ea8aa..ddecd3f8666a5e64fd5934835ecfe86e54bf1c68 100644 (file)
@@ -159,7 +159,7 @@ int bpf_restrict_ifaces_install(Unit *u) {
                 return 0;
 
         r = restrict_ifaces_install_impl(u);
-        fdset_close(crt->initial_restric_ifaces_link_fds);
+        fdset_close(crt->initial_restrict_ifaces_link_fds);
         return r;
 }
 
@@ -189,13 +189,13 @@ int bpf_restrict_ifaces_add_initial_link_fd(Unit *u, int fd) {
         if (!crt)
                 return -EINVAL;
 
-        if (!crt->initial_restric_ifaces_link_fds) {
-                crt->initial_restric_ifaces_link_fds = fdset_new();
-                if (!crt->initial_restric_ifaces_link_fds)
+        if (!crt->initial_restrict_ifaces_link_fds) {
+                crt->initial_restrict_ifaces_link_fds = fdset_new();
+                if (!crt->initial_restrict_ifaces_link_fds)
                         return log_oom();
         }
 
-        r = fdset_put(crt->initial_restric_ifaces_link_fds, fd);
+        r = fdset_put(crt->initial_restrict_ifaces_link_fds, fd);
         if (r < 0)
                 return log_unit_error_errno(u, r,
                         "restrict-interfaces: Failed to put restrict-ifaces-bpf-fd %d to restored fdset: %m", fd);
index a32b43059ebb363bee26104c4433ae28623e6a45..9567d56d0f00a4dccbf4650d5565a136d755e6de 100644 (file)
@@ -5249,7 +5249,7 @@ CGroupRuntime *cgroup_runtime_free(CGroupRuntime *crt) {
         bpf_link_free(crt->restrict_ifaces_ingress_bpf_link);
         bpf_link_free(crt->restrict_ifaces_egress_bpf_link);
 #endif
-        fdset_free(crt->initial_restric_ifaces_link_fds);
+        fdset_free(crt->initial_restrict_ifaces_link_fds);
 
         safe_close(crt->ipv4_allow_map_fd);
         safe_close(crt->ipv6_allow_map_fd);
index 54fb96981e1d4eb7797ac50b23200129cfa05e7f..ad34f77958748332149ba559444c0dbc1d4cb00d 100644 (file)
@@ -358,7 +358,7 @@ typedef struct CGroupRuntime {
         struct bpf_link *ipv6_socket_bind_link;
 #endif
 
-        FDSet *initial_restric_ifaces_link_fds;
+        FDSet *initial_restrict_ifaces_link_fds;
 #if BPF_FRAMEWORK
         struct bpf_link *restrict_ifaces_ingress_bpf_link;
         struct bpf_link *restrict_ifaces_egress_bpf_link;