]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: update outdated comment 36402/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 16 Feb 2025 21:16:26 +0000 (06:16 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 16 Feb 2025 21:20:46 +0000 (06:20 +0900)
Now, our kernel base line supports ambient capabilities, hence the
comment is outdated.

src/network/networkd.c

index 883f16d81b257bc29bb6fed480457dfd091981e3..2e1b242da2453eba0faa0afa4b5068bc4b453daa 100644 (file)
@@ -70,9 +70,8 @@ static int run(int argc, char *argv[]) {
                         return log_error_errno(r, "Failed to drop privileges: %m");
         }
 
-        /* Always create the directories people can create inotify watches in.
-         * It is necessary to create the following subdirectories after drop_privileges()
-         * to support old kernels not supporting AmbientCapabilities=. */
+        /* Always create the directories people can create inotify watches in. It is necessary to create the
+         * following subdirectories after drop_privileges() to make them owned by systemd-network. */
         FOREACH_STRING(p,
                        "/run/systemd/netif/links/",
                        "/run/systemd/netif/leases/") {