| 15 Jul 2025 |
niklaskorz | @grimmauld:grapevine.grimmauld.de ich nehme mal an du benutzt security.polkit.persistentAuthentication aus deinem run0-sudo-shim Modul? Bei mir scheint das keinen Effekt zu haben, irgendwelche Tipps wie ich das debuggen könnte? 🥹 | 07:06:43 |
niklaskorz | Die Rules in /etc/polkit-1/rules.d/10-nixos.rules sehen jedenfalls alle korrekt aus | 07:07:52 |
Grimmauld (any/all) | probier mal ein vanilla bash, ohne fancy prompt oder so. Wichtig für die persistent authentication in polkit ist, dass die parent process id (ppid) zwischen verschiedenen aufrufen konsistent bleibt. | 07:08:12 |
Grimmauld (any/all) |  Download image.png | 07:08:41 |
Grimmauld (any/all) | hier geht das jedenfalls einfach, aber ein anderer bekannter hatte wphl ähnliche probleme | 07:09:01 |
Grimmauld (any/all) | * hier geht das jedenfalls einfach, aber ein anderer bekannter hatte wohl ähnliche probleme | 07:09:11 |
Grimmauld (any/all) | Oder probier mal mehrmals ps -o ppid auszuführen, das sollte konsistentes output geben | 07:11:47 |
niklaskorz | In reply to @grimmauld:grapevine.grimmauld.de Oder probier mal mehrmals ps -o ppid auszuführen, das sollte konsistentes output geben Hm, ist konsistent, sowohl in fish + starship als auch vanilla bash, trotzdem jedesmal erneute Aufforderung zur Authentifizierung | 07:12:44 |
Grimmauld (any/all) | Spannend.... | 07:13:58 |
Grimmauld (any/all) | und die commands werden nicht in irgend einem wrapper ausgeführt? | 07:14:59 |
Grimmauld (any/all) | also probier mal run0 pstree -s pstree | 07:16:23 |
Grimmauld (any/all) |  Download image.png | 07:16:57 |
Grimmauld (any/all) | also pstree sollte direkt von deiner $SHELL den fork+exec bekommen, kein wrapper drin | 07:18:33 |
Grimmauld (any/all) | und wenn du das mehrmals machst sollte die shell pid gleich bleiben | 07:18:45 |
Grimmauld (any/all) |  Download image.png | 07:20:12 |
Grimmauld (any/all) | funktioniert hier btw auch in ghostty+fish, sollte also nicht an bash-isms liegen | 07:20:32 |
niklaskorz | ~ via 🐍 v3.13.4 ❄️
❯ run0 pstree -s pstree
-+= 00001 root /run/current-system/systemd/lib/systemd/systemd
\-+= 02568 niklasko /nix/store/73l80gfxnnchah2dzd97w42dc71dv4vx-systemd-257.6/lib/systemd/systemd --user
\-+= 03117 niklasko /run/current-system/sw/bin/ghostty
\-+= 14781 niklasko /run/current-system/sw/bin/fish
\-+= 15356 niklasko /run/current-system/sw/bin/fish
\-+= 15488 niklasko run0 pstree -s pstree
\--- 15489 niklasko /run/current-system/sw/bin/pkttyagent --notify-fd 6 --fallback
~ via 🐍 v3.13.4 ❄️ took 2s
❯ run0 pstree -s pstree
-+= 00001 root /run/current-system/systemd/lib/systemd/systemd
\-+= 02568 niklasko /nix/store/73l80gfxnnchah2dzd97w42dc71dv4vx-systemd-257.6/lib/systemd/systemd --user
\-+= 03117 niklasko /run/current-system/sw/bin/ghostty
\-+= 14781 niklasko /run/current-system/sw/bin/fish
\-+= 15356 niklasko /run/current-system/sw/bin/fish
\-+= 15613 niklasko run0 pstree -s pstree
\--- 15614 niklasko /run/current-system/sw/bin/pkttyagent --notify-fd 6 --fallback
ne sieht auch alles korrekt aus, hab auch in der repl nochmal sicherheitshalber config.security.polkit.package.patches gecheckt und der PR Patch ist definitiv drin... | 07:24:10 |
Grimmauld (any/all) | vorsicht | 07:24:54 |
Grimmauld (any/all) | du hast da fish -> fish | 07:24:59 |
Grimmauld (any/all) | wait nvm ist beides 15356, sollte passen... | 07:25:17 |
Grimmauld (any/all) | ich bin verwirrt. | 07:25:52 |
niklaskorz | ja der nested fish ist wegen nix shell, hatte kein pstree in der config^^ | 07:25:54 |
Grimmauld (any/all) | ah okay fair | 07:26:01 |
niklaskorz | aber gut, dann fällt mir auch nichts ein außer dass die polkit authkeep PR aus mysteriösen Gründen nicht mit meinem Setup kompatibel ist | 07:27:26 |
niklaskorz | trotzdem danke^^ | 07:27:58 |
Grimmauld (any/all) | polkit PR ist https://github.com/polkit-org/polkit/pull/533. Gibt da noch cgroup-Dinge, aber nicht sicher wie man das dann am besten debugged | 07:28:16 |
Grimmauld (any/all) | https://github.com/polkit-org/polkit/pull/533/files#diff-113a35ed1b2310a294b208bc456747ecefa0cf40df5f8995174a21f9966b596fR3172-R3176 | 07:29:06 |
Grimmauld (any/all) | ich könnte versuchen einen "debug-mode" einzubauen, welcher vor run0-exec uid/ppid/cgroup/tty ausgibt | 07:31:27 |
Grimmauld (any/all) | das wäre gar nicht so dumm tbh | 07:31:44 |
Grimmauld (any/all) | mach ich heute abend im space | 07:31:56 |