ELF Format note (13) -- segment permission, elfformat

Source: Internet
Author: User

ELF Format note (13) -- segment permission, elfformat

Ilocker: Follow Android Security (novice) QQ: 2597294287

A program that can be loaded by the system has at least one loadable segment. When the system creates a memory image with a CIDR block, it grants certain access permissions based on p_flags.

However, the actual memory access permission depends on the MMU (Memory Management Unit) of the system. The access permission granted by the system may be higher than the specified permission.

However, if PF_W is not specified, the system will not grant the write permission.

Segment permission list:

 

We can see that:

With executable permissions, you have the read permission. On the other hand, the system has the read permission, that is, the executable permission.

If you have the write permission, you must have the readable and executable permissions.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.