mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 12:34:26 +01:00
bak
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#ioctl
|
||||
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' ]
|
||||
[ "$(./kernel_modules/ioctl.out "$f" 0 1)" = 2 ]
|
||||
[ "$(./kernel_modules/ioctl.out "$f" 1 1 1)" = '2 0' ]
|
||||
rmmod ioctl
|
||||
|
||||
Reference in New Issue
Block a user