mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Improve fops a bit more
This commit is contained in:
@@ -4,9 +4,16 @@ insmod /fops.ko
|
||||
mkdir -p /fops
|
||||
mount -t debugfs none /fops
|
||||
cd /fops/kernel_module_cheat
|
||||
|
||||
cat fops
|
||||
# => open
|
||||
# => read
|
||||
# => len = [0-9]+
|
||||
# => close
|
||||
|
||||
printf a >fops
|
||||
# => open
|
||||
# => write
|
||||
# => len = a
|
||||
# => len = 1
|
||||
# => close
|
||||
# TODO.
|
||||
#echo a >fops
|
||||
|
||||
Reference in New Issue
Block a user