Based on the Linux kernel, the Android system understands the security design of Android by first clearing the main concepts and elements of the Linux security model, including user and permissions, process and memory space, and so on.
Users and Permissions
The Linux security model is based on users and user groups. Linux users are represented by user name and user ID (UID). Users can participate in multiple user groups at the same time, and each user group is represented by a group identifier (GID).
Linux systems are defined by three types of users:
-
Superuser (Root), with the highest system privileges, with a UID of 0.
-
System pseudo-user, Linux operating system for the needs of the system management, but do not want to give superuser privileges, some key systems need to apply file ownership to some system pseudo-user, its UID range is 1~499. The pseudo-user of the system cannot log on to the system.
-
Ordinary user, only have limited access, UID is 500~6000, can login system to get shell.
Linux security model of Android security model