I made a video, as it will make it easier for some people to grasp the idea behind it:Link here
Please excuse my voice, I have been crazy sick for the last three days, and don't pay any attention to the rest of my non-sense videos either, thanks...
My old post about this is here
I have made a lot of changes on it since that post, which are the following:
1. Have all files in a directory called sec
2. Made a make.sh script to setup everything for you
3. Created a version for the root account, as it needs more commands protected
4. Tweaked the code to allow it to run from the directory sec.
I don't know if anyone is interested, but if so, I can post the code here, or upload it somewhere as a compressed file.
I just found this to be pretty cool, and maybe someone would like to test it out/improve it.