On android, If we set some gids on a process, the process get the privilage of the gids set on it.
For example, if we want enable a process can access internet, we can just add the uid AID_INET to the gids of this process. The androd uid is defined in filesystem/core/include/private/android_filesystem_config.h.
The question is:
If we add a uid to gids of a process, what effect will in the process?
Now we know:
1. The process can access the file as group via ACL;
2. some privilage is grant to the process;(as above, if AID_INET is inclued in the gids of the process, the process will have the internet access)
Is there any other effect? And how this works?