!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

906 Members
Declaratively manage your switching, routing, wireless, tunneling and more.271 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
8 Jul 2025
@zhaofeng:zhaofeng.liZhaofeng Li

anyways, it appears that kea is actually right that it does not have the correct permissions

In [29]: print(router.succeed("nsenter -a -t 761 ls -lah /run/kea/"))
router: must succeed: nsenter -a -t 761 ls -lah /run/kea/
router: (finished: must succeed: nsenter -a -t 761 ls -lah /run/kea/, in 0.02 seconds)
total 56K
drwxr-xr-x 2 kea  kea  100 Jul  8 23:19 .
23:22:50
@hexa:lossy.networkhexahuh, 755 instead of 75023:23:33
@hexa:lossy.networkhexawild23:23:34
@zhaofeng:zhaofeng.liZhaofeng Li but I don't get how /run/private/kea/dhcp4.sock worked then (the real directory is 755 too), maybe something changed the permission 23:24:47
@hexa:lossy.networkhexakea's umask is 0077 fwiw23:25:28
@hexa:lossy.networkhexamaybe weird behavior with DynamicUser and RuntimeDirectoryPreserve?23:26:10
@hexa:lossy.networkhexamaybe we can find out using an audit rule23:27:11
@zhaofeng:zhaofeng.liZhaofeng Liok, got distracted23:49:42
@zhaofeng:zhaofeng.liZhaofeng Li

change socket-path to /run/private/kea/dhcp4.sock -> permission is correct

then, change kea-ctrl-agent to have ExecStart = "/bin/sh -c \"while true; do sleep 1000; done\""; -> bad permission??

23:50:03
@hexa:lossy.networkhexauhhhhhhhhhhhh23:51:32
@hexa:lossy.networkhexa
diff --git a/nixos/modules/services/networking/kea.nix b/nixos/modules/services/networking/kea.nix
index 6e0af62425a4..e55e7aa101c0 100644
--- a/nixos/modules/services/networking/kea.nix
+++ b/nixos/modules/services/networking/kea.nix
@@ -277,7 +277,7 @@ in
         User = "kea";
         ConfigurationDirectory = "kea";
         RuntimeDirectory = "kea";
-        RuntimeDirectoryMode = "750";
+        RuntimeDirectoryMode = "0750";
         RuntimeDirectoryPreserve = true;
         StateDirectory = "kea";
         UMask = "0077";
23:51:46
@hexa:lossy.networkhexa *
diff --git a/nixos/modules/services/networking/kea.nix b/nixos/modules/services/networking/kea.nix
index 6e0af62425a4..e55e7aa101c0 100644
--- a/nixos/modules/services/networking/kea.nix
+++ b/nixos/modules/services/networking/kea.nix
@@ -277,7 +277,7 @@ in
         User = "kea";
         ConfigurationDirectory = "kea";
         RuntimeDirectory = "kea";
-        RuntimeDirectoryMode = "750";
+        RuntimeDirectoryMode = "0750";
         RuntimeDirectoryPreserve = true;
         StateDirectory = "kea";
         UMask = "0077";
23:51:50
@zhaofeng:zhaofeng.liZhaofeng LiI tried this, same thing23:51:54

Show newer messages


Back to Room ListRoom Version: 6