Revert "fs: Don't initialize filename"

This reverts commit 3c365bdb7d.

Reason for revert: Remove remount restrictions

Change-Id: Iba12a0937949234a03b78660d11bf2026d477f52
This commit is contained in:
Michael Bestas 2025-03-21 19:27:21 +02:00
commit d2fc2e2912
No known key found for this signature in database

View file

@ -3119,7 +3119,7 @@ static bool mount_block_check(unsigned long flags, const char __user *dir_name)
int i;
u32 secid, su_secid;
const char *su_secctx = "u:r:su:s0";
struct filename *dir_filename;
struct filename *dir_filename = getname(dir_name);
const char *blocklist[] = {"/system", "/system_ext", "/product", "/vendor", "/odm", "/oem"};
int len = ARRAY_SIZE(blocklist);
bool ret = false;