One other thing, if you use the mprotect thing, it may be necessary to bump up the value of /proc/sys/vm/max_map_count, depending on how many of these Canary objects get constructed.
One other thing, if you use the mprotect thing, it may be necessary to bump up the value of /proc/sys/ vm/max_ map_count, depending on how many of these Canary objects get constructed.