News for hackers. Stuff that matters.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by treasy on Saturday March 30, 2024 @06:45PM (#39879420)
You can definitely prevent a lot of file/executable accesses via SELinux by running sshd in the default sshd_t or even customizing your own sshd domain and preventing sshd from being able to run binaries in its own domain without a transition. What you cannot prevent though is certain things that sshd _requires_ to function like certain capabilities and networking access.

by default sshd has access to all files in /home/$user/.ssh/, but that could be prevented by giving private keys a new unique file context, etc.

SELinux would not prevent all attacks, but it can mitigate quite a few as part of a larger security posture

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by transpute on Saturday March 30, 2024 @07:16PM (#39879590)
https://news.ycombinator.com/item?id=39879559

> Libselinux pulls in liblzma too

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by treasy on Saturday March 30, 2024 @07:31PM (#39879687)
libselinux is the userspace tooling for selinux, it is irrelevant to this specific discussion as the backdoor does not target selinux in any way, and sshd does not have the capabilities required to make use of the libselinux tooling anyway

libselinux is just an unwitting vector to link liblzma with openssh