Android Capability Fine-grained permissions control

Source: Internet
Author: User

1. Traditional Uid/gid, the granularity of permission is too large

2. Capability: Fine-grained permission control

3. Capability of the process

4. Capability of documents

5. Capability Boundset of the process

6. Capability of the Spawn process

7. Compatibility of capability and UID

Http://www.jikexueyuan.com/course/25_7.html?ss=1

-----------------------------------------

1. Traditional Uid/gid, the granularity of permission is too large

Permission particles are too coarse

Prone to excessive entitlement (overflow), giving too much authority

Security issues caused by overflow/excess: Too many permissions

Resolution: We need fine-grained permissions: In addition to the emperor, different magistrates are needed.

Linux introduces Capabilit: Each capability system is represented by a bit,

More than 30 capability are currently defined, but the OS uses 64bit storage internally for future expansion

2. Capability: Fine-grained permission control

Android capability files: android_filesystem_capability.h

Define Cap_chown 0, representing the No. 0 bit in the 64 bit

3. Capability of the process

4. Capability of documents

5. Capability Boundset of the process

6. Capability of the Spawn process

7. Compatibility of capability and UID

Android Capability Fine-grained permissions control

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.