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

Commit 46753648 authored by Dolev Raviv's avatar Dolev Raviv
Browse files

mtd: ubi: prevent unauthorized users to access scan_peb sysfs entry



scan_peb is a sysfs entry used to scan the time stamp of all PEBs. If a
PEB's time stamp is older than a given threshold, it is scheduled for
scrubbing. When activated, it will cause intensive CPU usage until
scan is completed.
Today any user can access the scan_peb sysfs entry, this may cause a
security vulnerability for DoS attacks.
Fix this by removing the write permissions, leaving them only to admin
users.

Change-Id: I732196bd81de4c14fc3f999544907346c7ac0044
Signed-off-by: default avatarDolev Raviv <draviv@codeaurora.org>
parent 23ca06e9
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