David Holmes <David.Holmes-QHcLZuEGTsvQT0dZR+AlfA at public.gmane.org> writes: > > <sigh> Looks like it is because the OS gives no way to do otherwise :( > mprotect doesn't allow you to add to the existing permissions only set > them - and there's no API that I can see to query page permissions. /proc/self/maps. But it's not very nice to use and slow. -Andi