summaryrefslogtreecommitdiff
path: root/libcutils/sockets_unix.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2016-12-13 11:55:19 -0700
committerJeff Sharkey <jsharkey@android.com>2016-12-13 13:28:08 -0700
commitdff44709cf462a3af7eb5770c90e3ada492295b7 (patch)
tree260698ec335906df76fe1db439baa5f71089a953 /libcutils/sockets_unix.cpp
parent2361ab0d3172adf472c7a8bbb7030f514543104d (diff)
Define range of GIDs for cached app data.
To support upcoming disk usage calculation optimizations, this change creates a new GID for each app that will be used to mark its cached data. We're allocating these unique GIDs so that we can use quotactl() to track cached data on a per-app basis. This change also tightens up the implementation of both the cache and shared GID calculation to ensure that they stay inside the valid ranges, and includes tests to verify. Test: builds, boots, tests pass Bug: 27948817 Change-Id: Ie4377e5aae267f2da39a165888139228995987cb
Diffstat (limited to 'libcutils/sockets_unix.cpp')
0 files changed, 0 insertions, 0 deletions