lkrg-org / lkrg

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

Adapt copy-builtin.sh script for LKRG debug option #203

Closed sempervictus closed 2 years ago

sempervictus commented 2 years ago

Changes to the Makefile enabling debug builds of LKRG resulted in the copy-builtin script producing an errant Makefile inside the target kernel tree.

Address this by creating a SECURITY_LKRG_DEBUG Kconfig option in the Kconfig file and copy/update the relevant Makefile stanza into the in-tree Makefile manually (vs extracting it from the source Makefile and modifying in-flight).

Testing: Built in Arch chroot, verified prompt for new option and module build in-tree.

Description

How Has This Been Tested?