!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

333 Members
https://github.com/nix-community/NixOS-WSL56 Servers

Load older messages


SenderMessageTime
25 Nov 2022
@psvo:matrix.orgpsvoplease disregard, I've misunderstood it, it should not affect nixos probably17:52:26
@k900:0upti.meK900OK I am very confused now17:53:18
@k900:0upti.meK900 login -f does invoke PAM 17:53:31
@k900:0upti.meK900 But WSL doesn't invoke login -f 17:53:51
@k900:0upti.meK900Or rather, it invokes it ONCE17:53:55
@k900:0upti.meK900Oh god I have a SUSPICION17:55:01
@k900:0upti.meK900If this turns out to be it17:55:19
@k900:0upti.meK900I will slap someone17:55:24
@nzbr:nzbr.deArson Copperflame From what I learned when I made the horrible runuser hack, systemd --user only works, when the shell is inside a PAM session and the PAM config that is used includes pam_systemd.so 17:55:39
@k900:0upti.meK900OK it's not it17:55:53
@k900:0upti.meK900Thank god17:55:55
@nzbr:nzbr.deArson Copperflame So MS did the exact same thing that I did, but they used login instead of runuser 17:55:56
@k900:0upti.meK900I think what they're doing is worse actually17:56:09
@k900:0upti.meK900 They're spawning exactly one PAM session with login 17:56:18
@k900:0upti.meK900That just hangs around in the background17:56:24
@psvo:matrix.orgpsvojust checked: when you put your locale to /etc/default/locale, the shell spawn by /init will have, not that solves anything, but obviously there's a huge amount of hardcoded paths17:56:35
@psvo:matrix.orgpsvoyes, I believe they do17:56:50
@k900:0upti.meK900 But that does not help us here because we need PAM on every process 17:56:52
@k900:0upti.meK900Because that's how we get LOCALE_ARCHIVE17:57:00
@psvo:matrix.orgpsvocould we shim /init? :)17:57:28
@k900:0upti.meK900We already are17:57:38
@k900:0upti.meK900And it's not going to help17:57:41
@k900:0upti.meK900Because they're spawning the shell processes completely outside /init17:57:49
@psvo:matrix.orgpsvowe shim /sbin/init, right?17:57:53
@k900:0upti.meK900What we need to do is shim the SHELL17:57:55
@k900:0upti.meK900Oh no we can't shim the WSL /init17:58:05
@k900:0upti.meK900It's bind-mounted from inside the utility distro17:58:16
@nzbr:nzbr.deArson CopperflameHey, at least we have experience shimming the shell /s17:58:46
@k900:0upti.meK900WE DON'T17:58:51
@k900:0upti.meK900That's the problem17:58:54

Show newer messages


Back to Room ListRoom Version: 9