Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22881cce authored by Omar Eissa's avatar Omar Eissa
Browse files

Use quotactl to prevent abusive apps from using all inodes available

Make sure that we prevent malicious apps from causing DoS of the system
by exhausting all available inodes. Limit apps to not use more than 50%
of available inodes. This CL makes sure that upon app data preparation,
we use quotctl to see inodes hard limit for the app being prepared.

Test: atest CreateAppData_QuotaEnforcementSet
Bug: 293301664
Flag: android.installd.flags.enable_set_inode_quotas

Change-Id: Ia329aaf0b3c6c00f3d09a33d62e1131b30e4c2fa
parent 253826b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment