lkrg-org / lkrg

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

fix: umh - allow openrc cgroup release agent [#230] #231

Closed mrl5 closed 1 year ago

mrl5 commented 1 year ago

closes #230

Description

added OpenRC's /lib/rc/sh/cgroup-release-agent.sh to p_umh_global[]

How Has This Been Tested?

as a regular user I've: made sure that bug is reproducable

sudo /etc/init.d/cupsd restart
sudo /etc/init.d/cupsd restart
sudo dmesg | tail | grep 'LKRG: ALERT: BLOCK: UMH'

unloaded lkrg module and checked if it's there:

sudo /etc/init.d/lkrg stop
lsmod | grep lkrg

tried to reproduce again

sudo /etc/init.d/cupsd restart
sudo /etc/init.d/cupsd restart
sudo dmesg | tail | grep 'LKRG: ALERT: BLOCK: UMH'

compiled and installed lkrg that includes my changes

make
sudo make install

made sure to replace already existing module by running

sha256sum /lib/modules/5.18.16_p1-debian-sources/misc/lkrg.ko
sudo mv -v /lib/modules/5.18.16_p1-debian-sources/extra/lkrg.ko \
    /lib/modules/5.18.16_p1-debian-sources/misc/lkrg.ko
sha256sum /lib/modules/5.18.16_p1-debian-sources/misc/lkrg.ko

loaded new lkrg module

sudo /etc/init.d/lkrg start
lsmod | grep lkrg

tried to reproduce again

sudo /etc/init.d/cupsd restart
sudo /etc/init.d/cupsd restart
sudo dmesg | tail | grep 'LKRG: ALERT: BLOCK: UMH'