mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #977] file_system: MAXIMUM_ALLOWED open of an overlay copy names read+write to the host (FS-MAXIMUM-ALLOWED-WINE) #1014
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1014
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/977
Author: @OlaiFG7
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/fs-maximum-allowed-wine📝 Commits (1)
0d00b56file_system: a MAXIMUM_ALLOWED open of an overlay copy names read and write to the host (FS-MAXIMUM-ALLOWED-WINE)📊 Changes
3 files changed (+55 additions, -2 deletions)
View changed files
📝
runtime/shims/file_system.cpp(+19 -2)📝
runtime/shims/file_system.h(+7 -0)📝
runtime/test/file_system_test.cpp(+29 -0)📄 Description
Claimed in the coordination issue as: FS-MAXIMUM-ALLOWED-WINE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7136888814)
What and why
Under Wine a handle opened with
MAXIMUM_ALLOWEDreads but cannot write (finding by milk4sale in #14); Windows grants every right. The file-system shim already treatsMAXIMUM_ALLOWEDas a write-open and hands the title an overlay copy, but passed the mask to the host unchanged.host_open_access()inruntime/shims/file_system.{h,cpp}addsGENERIC_READ | GENERIC_WRITEto a mask that hasMAXIMUM_ALLOWED; other masks are unchanged. Used by the CreateFileW/A and CreateFile2 shims.ERROR_ACCESS_DENIEDto the widened mask (read-only overlay copy), the open is retried with the title's own mask.runtime/test/file_system_test.cpp: mask checks and a read-only overlay copy check. No game files.Tested
Not built and not run: the machine used to write this has no C++ toolchain. Draft until
file_system_testis built and run on Windows and under Wine.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.