Kernel: Fix string validation in unlink syscall

This commit is contained in:
2025-08-27 22:57:22 +03:00
parent a8bb07052e
commit c1b6b6b76a

View File

@@ -1236,6 +1236,7 @@ namespace Kernel
{
LockGuard _(m_process_lock);
TRY(validate_string_access(path1));
if (path2 != nullptr)
TRY(validate_string_access(path2));
if (!find_file(fd, path2, O_NOFOLLOW).is_error())