!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

871 Members
Declaratively manage your switching, routing, wireless, tunneling and more. | Don't rely on `networking.*` use systemd-networkd and NetworkManager instead. | Set `SYSTEMD_LOG_LEVEL=debug` to debug networking issues with networkd | No bad nft puns, please. | Room recommendations: #sysops:nixos.org249 Servers

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


SenderMessageTime
8 Jul 2025
@hexa:lossy.networkhexa (clat on linux when)kea's umask is 0077 fwiw23:25:28
@hexa:lossy.networkhexa (clat on linux when)maybe weird behavior with DynamicUser and RuntimeDirectoryPreserve?23:26:10
@hexa:lossy.networkhexa (clat on linux when)maybe 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.networkhexa (clat on linux when)uhhhhhhhhhhhh23:51:32
@hexa:lossy.networkhexa (clat on linux when)
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 (clat on linux when) *
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
@hexa:lossy.networkhexa (clat on linux when) Zhaofeng Li: does this work for you? 23:51:57
@zhaofeng:zhaofeng.liZhaofeng Li* I tried adding a preceding 0, same thing23:52:01
@hexa:lossy.networkhexa (clat on linux when)lol, the test did complete here23:52:05
@hexa:lossy.networkhexa (clat on linux when)shoot me23:52:06
@zhaofeng:zhaofeng.liZhaofeng Lihow??23:52:31
@hexa:lossy.networkhexa (clat on linux when)let me rebase and retry23:52:55
@zhaofeng:zhaofeng.liZhaofeng Listashed everything and only added the preceding 0, did not succeed (permission error)23:55:30
@zhaofeng:zhaofeng.liZhaofeng Limaybe it's some race and it will sometimes succeed23:55:44
@zhaofeng:zhaofeng.liZhaofeng Lilooks like this really isn't a good idea after all: https://github.com/systemd/systemd/issues/539423:57:45
@zhaofeng:zhaofeng.liZhaofeng Limaybe let's just give kea a UID and call it a day 🫠23:58:20
@zhaofeng:zhaofeng.liZhaofeng Li * looks like having multiple DynamicUser= services sharing the same RuntimeDirectory= isn't a good idea after all: https://github.com/systemd/systemd/issues/5394 23:58:43
9 Jul 2025
@zhaofeng:zhaofeng.liZhaofeng Li *

looks like having multiple ~~DynamicUser=~~ services sharing the same RuntimeDirectory= isn't a good idea after all: https://github.com/systemd/systemd/issues/5394

Edit: I think sharing RuntimeDirectory just isn't supported, even with static User=s

00:11:59
@hexa:lossy.networkhexa (clat on linux when)ok yeah, right00:26:22
@hexa:lossy.networkhexa (clat on linux when)can't repro the sucess anymore00:26:28
@hexa:lossy.networkhexa (clat on linux when)wild00:26:32

Show newer messages


Back to Room ListRoom Version: 6