How to change page permission from inside the kernel?

Ruben Safir ruben at mrbrklyn.com
Fri Jul 6 14:49:58 EDT 2018


On 07/06/2018 02:06 PM, Ahmed Soliman wrote:
> I have a memory page allocated with mmap() from user space, This
> address is passed to some kernel module (kvm_intel to be specific) and
> i want to know how can I change the page permission from inside there
> My goal is to achieve something like this
>               mprotect(mem, PAGE_SIZE, PROT_READ)
> except for mprotect can't be called from the kernel, and I couldn't
> find the right way to do it.
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 

sounds like a good way to make a virus

-- 
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013



More information about the Kernelnewbies mailing list