!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

82 Members
systemd in NixOs's stage 1, replacing the current bash tooling https://github.com/NixOS/nixpkgs/projects/5126 Servers

Load older messages


SenderMessageTime
19 Feb 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.orggtg for now though22:47:24
@elvishjerricco:matrix.org@elvishjerricco:matrix.org(I think I just saw what I did wrong and it's very stupid but I'll be back later)22:53:12
20 Feb 2023
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deSeeing https://github.com/NixOS/nixpkgs/pull/215381, do you people think my dream of an interpreter-less initrd is achievable?09:03:57
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de(I know I'm asking for the opposite :D)09:04:08
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Janne Heß: Can you explain that dream? 09:04:34
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgDo you just mean no bash or python or any other shebang-isms required?09:04:47
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @elvishjerricco:matrix.org
Janne Heß: Can you explain that dream?
Having no interpreter at all (also no recovery shell obviously) to prevent any way of arbitrary code execution
09:05:15
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgahhh09:05:27
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgGetting rid of bash seems... extremely unlikely09:05:38
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI guess the activation unit is the only one that uses bash though09:06:10
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgso maybe09:06:12
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deThat was going to be my next question :D09:06:20
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.depkgs.writeCBin goes brrrrr09:06:25
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgit would impose a pretty substantial restriction though09:06:34
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbut a substantial restriction on a niche thing is probly ok?09:06:48
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de🤔09:06:56
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthe big problem is, as evident by the linked PR, wrapper script09:07:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.org * the big problem is, as evident by the linked PR, wrapper scripts09:07:06
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deWill investigate. Asking because we have a certrain customer who is interested in this09:07:20
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @elvishjerricco:matrix.org
the big problem is, as evident by the linked PR, wrapper scripts
nixos test that takes the initrd and does find /nix/store -name bash -or -name irb -or -name … seems likely. If anyone really wants their bean shell in there, so be it
09:08:01
@elvishjerricco:matrix.org@elvishjerricco:matrix.org hm? My point was that e.g. if you want cryptsetup stuff or gzip stuff (vconsole), you need wrapper scripts via makeWrapper that just set environment variables before executing the real program 09:09:24
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthose scripts are almost universally bash in nixos09:09:47
@elvishjerricco:matrix.org@elvishjerricco:matrix.org oh but I guess isn't there a C version of makeWrapper? 09:10:06
@k900:0upti.meK900I just don't get the threat model09:10:07
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @elvishjerricco:matrix.org
oh but I guess isn't there a C version of makeWrapper?
makeBinaryWrapper
09:10:12
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @k900:0upti.me
I just don't get the threat model
Neither do I but it seems like a interesting challenge
09:10:26
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI kind of get it09:10:42
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @janne.hess:helsinki-systems.de
Neither do I but it seems like a interesting challenge
I also told them having AppArmor everywhere would get you to a more secure system but who am I to judge
09:11:03
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgThe more turing complete parameters you include, the greater the fuckups09:11:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbut like the kernel already has turing complete shit with bpf or whatever it's called so you're already screwed09:11:37

Show newer messages


Back to Room ListRoom Version: 6