I need to somehow impliment mprotect functionality that isn't restricted to PAGESIZE (4k). I need to be able to protect an area of memory, defined at runtime with a location address and size. This will be an area of shared memory. I was wondering if this is possible, or it might be possible to somehow intercept a memory access, so I can possibly manage this myself. Of course rather do it in the kernel somehow. Or could a LKM do something like this.