Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
well i think generally the parents memory all becomes copy on write and both the parent and child get copies if they try to write.
might be different if you create child with clone() ?
you can always share memory either thru shared memory or mmap but not executable code section i don't think. I mean really does any process have write access to it's code ?
accept for the fact that all linux segments are overlapping and all start at the same place.
isn't all code segments either execute only or execute/read.
My question is can I fork a process and call exec then change codesegment of the child process?
If I can do this, I can do this scenario on a program with root's suid such as passwd then run my own program with root's permission!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.