NixOS systemd | 614 Members | |
| NixOS ❤️ systemd | 164 Servers |
| Sender | Message | Time |
|---|---|---|
| 19 Aug 2021 | ||
| I am thinking: why all the manual confinement code that we have if there is that. E.g. if I point it at /nix/store/....-nginx that contains the minimal required dirs | 18:16:24 | |
| And then tmpfiles + bindmount + state dir/logdir/... | 18:16:45 | |
| andi-: sounds like some fun experiments | 22:51:16 | |
| 20 Aug 2021 | ||
| Running my systems on v249 now. Can't say things are any different than before. | 09:00:54 | |
| Looking forward to v249, hopefully systemd-cryptenroll makes TPM unlocking LUKs drives a bit simpler. | 16:20:40 | |
| 21 Aug 2021 | ||
| That will still require some work. I haven't actually looked at any of the new features. It is already enough to try to keep things running. | 11:42:39 | |
| That being said I also have a few local patches around resolved and enabling DNS-over-TLS etc.. | 11:43:07 | |
| things we just don't allow right now | 11:43:13 | |
| Yeh TPM won't work yet. We haven't enabled it in the default config. For TPM root partitions we need systemd-initrd. Which we don't have yet | 12:00:13 | |
| So you could only use it to mount secondary partitions | 12:00:23 | |
| what do you mean with TPM root partitions? | 12:10:15 | |
| FWIW there is currently an open PR that adds TPM luks decryption to NixOS. I haven't looked in detail but that should work for root partitions. | 12:11:14 | |
| As in. If you want to unlock your root partitions with the systemd-cryptenroll stuff you need systemd in initrd | 12:23:01 | |
| I would be thinking about this systemd tpm integration more positively if they wouldn't use those weird user space bindings... | 13:08:45 | |
| What do you mean? | 13:18:01 | |
| Tpm2-tss? | 13:18:08 | |
| yeah | 13:20:07 | |
| supposedly the code is mostly generated from the spec yet it feels a bit clunky and their approach to testing breaks if run on ZFS for random reasons... | 13:21:46 | |
| 22 Aug 2021 | ||
If coccinelle wouldn't be written in OCaml (but e.g. C) I'd pull it into our systemd build to replace the hacky sed-based dlopen replacement... :( | 11:02:31 | |
| Yeh that sucks | 11:39:09 | |
| And even then coccinelle doesn't support the C extensions used by systemd:
| 11:46:56 | |
| * And even then coccinelle doesn't support the C extensions used by systemd:
| 11:47:01 | |
So I thought about writing an "updater" that would produce a patch that replaced all of the unhandled locations with something that we can grep for later an but since _cleanup_ isn't properly recognized that doesn't work. I don't feel like writing multi-line regex that are aware of the C cornercases.. | 11:48:27 | |
* So I thought about writing an "updater" that would produce a patch that replaced all of the unhandled locations with something that we can grep for later but since _cleanup_ isn't properly recognized that doesn't work. I don't feel like writing multi-line regex that are aware of the C cornercases.. | 11:51:30 | |
| Supporting libbpf requires clangd in the build environment.. Soon we will have another dependency cycle... | 12:29:35 | |
| And even then it doesn't work:
I'll skip this for now. | 12:52:24 | |
| A good example of a waaaay too complex test setup for actual debugging a test without having written it is this: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/systemd-confinement.nix | 13:25:41 | |
| Also relies on side-effects of the previous test executing such that the shell script actually does the right thing.. | 13:26:28 | |
| * Also relies on side-effects of the previous test execution such that the shell script actually does the right thing.. | 13:26:52 | |
| Most underrated systemd debug tool: systemd-nspawn. Just ptrace that instead of your (VMs) pid 1. | 15:37:41 | |