diff options
author | Philip Sanderson <philip.k.sanderson@gmail.com> | 2011-01-20 21:37:28 -0600 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-01-20 21:37:29 +1030 |
commit | 5230ff0cccb0611830bb02b097535868df02752a (patch) | |
tree | 7d1345e1ede12e2fd85918c9944fe929017cde6b /.gitignore | |
parent | 8aeb36e8f6d7eaa9cafc970b700414205743b258 (diff) | |
download | op-kernel-dev-5230ff0cccb0611830bb02b097535868df02752a.zip op-kernel-dev-5230ff0cccb0611830bb02b097535868df02752a.tar.gz |
lguest: example launcher to use guard pages, drop PROT_EXEC, fix limit logic
PROT_EXEC seems to be completely unnecessary (as the lguest binary
never executes there), and will allow it to work with SELinux (and
more importantly, PaX :-) as they can/do forbid writable and
executable mappings.
Also, map PROT_NONE guard pages at start and end of guest memory for extra
paranoia.
I changed the length check to addr + size > guest_limit because >= is wrong
(addr of 0, size of getpagesize() with a guest_limit of getpagesize() would
false positive).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions