Permission checking of memory region

Signed-off-by: Brian McGillion <brian.mcgillion@intel.com>