4a9368455e
o initial work by brad@, polishing by me o idea for MP detection shellcode from drahn@ for those with MP systems, pay attention to the MESSAGE shellcode example, and make sure to modify any existing shellcode you may have in /etc/rc.securelevel lest you try to load a UP lkm on a MP kernel and have unpleasant consequences.
16 lines
483 B
Plaintext
16 lines
483 B
Plaintext
If you want to load this kernel module at boot time, add the following
|
|
lines to /etc/rc.securelevel :
|
|
|
|
if nm /dev/ksyms | grep mp_lock >/dev/null; then
|
|
if [ -r ${INSTDIR}/kqemu_mp.o ]; then
|
|
echo ' kqemu'; /sbin/modload ${INSTDIR}/kqemu_mp.o
|
|
fi
|
|
else
|
|
if [ -r ${INSTDIR}/kqemu.o ]; then
|
|
echo ' kqemu'; /sbin/modload ${INSTDIR}/kqemu.o
|
|
fi
|
|
fi
|
|
|
|
If you want a user to be able to use this module, add them to the group
|
|
_kqemu.
|