mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
8 lines
149 B
Bash
Executable File
8 lines
149 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
f=/sys/kernel/debug/lkmc_ioctl
|
|
insmod /ioctl.ko
|
|
[ "$(/ioctl.out "$f" 0 1)" = 2 ]
|
|
[ "$(/ioctl.out "$f" 1 1 1)" = '2 0' ]
|
|
rmmod ioctl
|