flat assembler
Message board for the users of flat assembler.

Index > Linux > Change memory attribute

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 319
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan
There is a function in Windows that allows you to assign a READ/WRITE attribute to a memory.

VirtualProtect(Base, Size, PAGE_EXECUTE_READWRITE, @OldProtect)

Is there such a thing in Linux 64-bit?

_________________
smaller is better
Post 19 Oct 2020, 09:11
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7797
Location: Kraków, Poland
Tomasz Grysztar
It's sys_mprotect.
Post 19 Oct 2020, 09:27
View user's profile Send private message Visit poster's website Reply with quote
CandyMan



Joined: 04 Sep 2009
Posts: 319
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan
Thanks!
Post 19 Oct 2020, 10:01
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.