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

Commit db703640 authored by Chao Yu's avatar Chao Yu
Browse files

fs_mgr: enable quota by default



It was reported there is a security issue in Pixel device, it can be
hit by DoS attack by a malicious app trying to make use of all inodes
available in the system.

The root cause is filesystem hasn't fully enabled disk quota feature,
as by default, it only enabled accounting usage of all files inside
internal quota database sysfile, however, it missed to enable quota
limitation.

There are two ways to fix this:
1. fix in userspace
 - add "usrquota,grpquota,prjquota" mount option during mount
2. fix in kernel
 - pass both DQUOT_USAGE_ENABLED and DQUOT_LIMITS_ENABLED flag into
   f2fs_quota_enable()

To keep flexibility on kernel functionality, it's more proper to fix
this in userpspace.

Bug: 416567751
Test: make
Flag: EXEMPT bugfix
Change-Id: I00c56f80dab13587eb2fbb9755423af97c660e5f
Signed-off-by: default avatarChao Yu <chaseyu@google.com>
parent 2a4a9b00
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