Improve fops a bit more

This commit is contained in:
Ciro Santilli
2017-05-12 18:09:32 +01:00
parent 2f77a45f63
commit 8616f6009b
2 changed files with 15 additions and 3 deletions

View File

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