lkrg-org / lkrg

Linux Kernel Runtime Guard
https://lkrg.org
Other
410 stars 72 forks source link

Add support for new RHEL8.6+ kernels #243

Closed Adam-pi3 closed 1 year ago

Adam-pi3 commented 1 year ago

Description

Starting from RHEL8.6 4.18.0-372.32.1.el8_6 kernel struct text_poke_loc is not exported and we need to correctly take this into account. Previous RHEL8.6 kernels did not hide this structure so we need to find some ways to disinguish them. We do it in this commit and it should fix #236

How Has This Been Tested?

Tested against the following RHEL8.6 kernels:

solardiz commented 1 year ago

CI is happy. I also built and loaded this on Alma 8.5 with 4.18.0-348.23.1.el8_5.x86_64 - no issues so far. I'll merge.