- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Write Protect Shared Memory Section
Operating System - Linux
1755087
Members
4475
Online
108829
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 07:44 PM
04-21-2004 07:44 PM
Write Protect Shared Memory Section
Hi,
I create shared memory with read and write.
But I want particular area of memory alone to be protected so that Others cannot overwrite that section.
I came across mmap / mprotect .
Can any one tell whether with mmap/ mprotect it can be achieve or any other solution ?
I want this code to be portable too!
I create shared memory with read and write.
But I want particular area of memory alone to be protected so that Others cannot overwrite that section.
I came across mmap / mprotect .
Can any one tell whether with mmap/ mprotect it can be achieve or any other solution ?
I want this code to be portable too!
- Tags:
- mprotect
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2007 07:09 PM - edited 09-25-2011 12:48 PM
07-30-2007 07:09 PM - edited 09-25-2011 12:48 PM
Re: Write Protect Shared Memory Section
Yes, mprotect can protect whole pages. That's what's used for guard pages for thread stacks.
You probably got this info from Don in your other thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=580158
- Tags:
- guard page
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP