mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
9 lines
151 B
Bash
Executable File
9 lines
151 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
f=/sys/kernel/debug/lkmc_kstrto
|
|
insmod /kstrto.ko
|
|
printf 123 > "$f"
|
|
[ "$(cat "$f")" = 124 ]
|
|
echo foobar > "$f" && exit 1
|
|
rmmod kstrto
|