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: 413
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan 19 Oct 2020, 09:11
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: 8351
Location: Kraków, Poland
Tomasz Grysztar 19 Oct 2020, 09:27
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: 413
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan 19 Oct 2020, 10:01
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.