Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6620083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:03:14+00:00 2026-05-25T21:03:14+00:00

OK, what I want to do here is to only give read access to

  • 0

OK, what I want to do here is to only give read access to all the pages in an address space in Linux. Whenever a page would be written, I will give write access to it in a SIGSEGV signal handler. For 32 bit, this is easy as the address space is of only 4GB, therefore it wouldn’t take alot of time to set bits for each page, but how do I approach this problem for a 64 bit process as the address space is almost infinite in this case.

Its no problem for me if I limit the address space size with ulimit -v, but people told me the address would not be linear. Now my head is aching thinking how can I solve this problem. Any help in this regard would be highly appreciated. Please tell me the most efficient way possible to set read access of all pages for a 64 bit program.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:03:15+00:00Added an answer on May 25, 2026 at 9:03 pm

    To avoid protecting the entire address space, only protect the pages in use. And, trap the system calls that change the address space (mmap, brk, possibly thread creation, etc) so you can protect those pages.

    Note that your signal handler cannot run without being able to write to its stack (nor being able to execute its code), so there are some fundamental problems beyond just 64-bits being large.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here I only want to pass a custom class or only parameters into a
I want to select only one radio button but I cant do this. Here
I want to add legends in a subplot, bu only for certain plots. Here
Play with it here: http://jsbin.com/ocicu4/4/edit Simple Accordion, I only want one section open at
enter code here Want to remove items from a Main list , but give
All Here i want to run .sh file via system call in android NDK.
What I want to achieve here is to shrink all of the Android's OS
We want to give some of our users permissions to read from database whatever
I'm not entirely sure if I can do what I want here, but I
I've decided to reopen this because I want to here more peoples views on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.