Re:No More Blue Fridays
by dredmorbius on Monday July 22, 2024 @10:05AM
(#41034528)
Considering the number of systems running very obsolete OSes these days: WinNT (4x or 3x), Windows, DOS, or various proprietary Unixen, stale Linux flavours, etc., etc., ... yes, quite.
And assuming there's no bugs in the BPF code...
RHEL kernel.. right. Imho, I'd trust an upstream stable kernel far more than a RHEL one for production which has dozen of feature backports and an internal kABI to maintain.. granted RH has a QA team, but it is still impossible to test everything beforehand.
Re:No More Blue Fridays
by worthless-trash on Monday July 22, 2024 @09:36AM
(#41034213)
On the upside, non root users can't insert ebpf code, so its a priv'ed operation, not like other distros.
Isn’t it tied to CAP_BPF on every distro since the 5.8 kernel?
Re:No More Blue Fridays
by worthless-trash on Tuesday July 23, 2024 @04:20AM
(#41043826)
Rhel8 is based on 4.18
RHEL9 is based on 5.14 , i think it still has the same restriction ( kernel.unprivileged_bpf_disabled ).
I reckon Red Hat may duplicate upstreams behavior by RHEL10.
I think with a LTS distribution you should get very far these days when it comes to implementing such sensors.
On rhel8 variants, you can use the Oracle UEK to get eBPF.
https://blogs.oracle.com/linux/post/oracle-linux-and-bpf
$ cat /etc/redhat-release /etc/oracle-release /proc/version
Red Hat Enterprise Linux release 8.10 (Ootpa)
Oracle Linux Server release 8.10
Linux version 5.15.0-203.146.5.1.el8uek.x86_64 (mockbuild@host-100-100-224-48) (gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9.2.0.1), GNU ld version 2.36.1-4.0.1.el8_6) #2 SMP Thu Feb 8 17:14:39 PST 2024
Assuming every security critical system will be on a recent enough kernel to support this...