diff options
| author | 2018-04-12 14:52:37 -0600 | |
|---|---|---|
| committer | 2018-04-13 11:02:39 -0600 | |
| commit | ce764fa870ed9ad0da745fe446d260ad1a4d37c8 (patch) | |
| tree | 1353f3d41aa8a9f42cfa528e7b391bd6c21763f0 /cmds/installd/InstalldNativeService.cpp | |
| parent | 1f0622ed9717f9b6f9735e4b9634f182a0d79b4d (diff) | |
Disable APPLY_HARD_QUOTAS in favor of "resgid".
We're now using the "resgid" filesystem feature to protect users
against abusive apps, so we no longer need to apply hard quotas.
Bug: 77862961
Test: builds, boots
Change-Id: I6877ff93afe9bda3e6039898787240a2b06cdb55
Diffstat (limited to 'cmds/installd/InstalldNativeService.cpp')
| -rw-r--r-- | cmds/installd/InstalldNativeService.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/installd/InstalldNativeService.cpp b/cmds/installd/InstalldNativeService.cpp index 833ffbfc5c..860a68b273 100644 --- a/cmds/installd/InstalldNativeService.cpp +++ b/cmds/installd/InstalldNativeService.cpp @@ -356,8 +356,8 @@ static int prepare_app_dir(const std::string& path, mode_t target_mode, uid_t ui * Ensure that we have a hard-limit quota to protect against abusive apps; * they should never use more than 90% of blocks or 50% of inodes. */ -static int prepare_app_quota(const std::unique_ptr<std::string>& uuid, const std::string& device, - uid_t uid) { +static int prepare_app_quota(const std::unique_ptr<std::string>& uuid ATTRIBUTE_UNUSED, + const std::string& device, uid_t uid) { // Skip when reserved blocks are protecting us against abusive apps if (android::base::GetBoolProperty(kPropHasReserved, false)) return 0; // Skip when device no quotas present |