From f9c03297c5ad84439c519ab700cfdbc09f1b7790 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 17 Feb 2025 06:16:26 +0900 Subject: [PATCH] network: update outdated comment Now, our kernel base line supports ambient capabilities, hence the comment is outdated. --- src/network/networkd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/network/networkd.c b/src/network/networkd.c index 883f16d81b2..2e1b242da24 100644 --- a/src/network/networkd.c +++ b/src/network/networkd.c @@ -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/") { -- 2.47.3