This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-05 00:00:00 +00:00
parent 0ef494b681
commit aea97698c3
48 changed files with 840 additions and 798 deletions

View File

@@ -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