Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am adrianbn on github.
  • I am adrianbn (https://keybase.io/adrianbn) on keybase.
  • I have a public key ASBPdj9XT_DbanvYoekbSqdPfO-aOX1XSMaA8W4skFFPKQo

To claim this, I am signing this object:

@adrianbn
adrianbn / enc_io.c
Last active August 29, 2015 14:23
A PoC for a Linux kernel module performing transparent IO encryption.
/*
* encrypted_io.c
*
* usage: insmod encrypt_io.ko uid=<user ID> dir=<folder>
*
* If no uid is specified, -1 is used and no user will be affected.
* If no dir is specified, /tmp/ is used.
*
* For more information on theory of operation of kretprobes, see
* Documentation/kprobes.txt