kernel: Don't load modules from non-packaged under "disable user add-ons".
This matches the behavior of the "new-style" module system. Part of #14361.
This commit is contained in:
@@ -945,7 +945,7 @@ DirectoryIterator::SetTo(const char* path, const char* subPath, bool recursive)
|
|||||||
B_SAFEMODE_DISABLE_USER_ADD_ONS, false);
|
B_SAFEMODE_DISABLE_USER_ADD_ONS, false);
|
||||||
|
|
||||||
for (uint32 i = 0; i < sizeof(kDriverPaths) / sizeof(kDriverPaths[0]); i++) {
|
for (uint32 i = 0; i < sizeof(kDriverPaths) / sizeof(kDriverPaths[0]); i++) {
|
||||||
if (i < 2 && disableUserAddOns)
|
if (i < 3 && disableUserAddOns)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (__find_directory(kDriverPaths[i], gBootDevice, true,
|
if (__find_directory(kDriverPaths[i], gBootDevice, true,
|
||||||
@@ -1480,7 +1480,7 @@ legacy_driver_probe(const char* subPath)
|
|||||||
B_SAFEMODE_DISABLE_USER_ADD_ONS, false);
|
B_SAFEMODE_DISABLE_USER_ADD_ONS, false);
|
||||||
|
|
||||||
for (uint32 i = 0; i < sizeof(kDriverPaths) / sizeof(kDriverPaths[0]); i++) {
|
for (uint32 i = 0; i < sizeof(kDriverPaths) / sizeof(kDriverPaths[0]); i++) {
|
||||||
if (i < 2 && disableUserAddOns)
|
if (i < 3 && disableUserAddOns)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (__find_directory(kDriverPaths[i], gBootDevice, true,
|
if (__find_directory(kDriverPaths[i], gBootDevice, true,
|
||||||
|
|||||||
Reference in New Issue
Block a user