@Taki Ly (WICLOUD CORPORATION) , this question follows your request for a separate thread addressing the RootDirectory granted-mask issue.
Question
For user-mode NtCreateFile, does an existing filesystem-directory handle used as RootDirectory require any additional right in its actual granted-access mask beyond FILE_READ_ATTRIBUTES for the child request below?
The purpose is to clarify the supported parent-handle access requirement for a proposed directory-relative metadata acquisition.
Hypothetical scenario
Assume a valid, still-held filesystem-directory handle whose actual granted-access mask is independently established as FILE_READ_ATTRIBUTES alone.
This is a hypothetical premise, not a claim about a local handle or the handle used in the earlier reported tests. I am not reporting a locally observed success or failure.
| Parameter |
Proposed value |
RootDirectory |
The existing filesystem-directory handle described above |
ObjectName |
One literal child component |
ObjectAttributes.Attributes |
0 |
DesiredAccess |
FILE_READ_ATTRIBUTES |
ShareAccess |
FILE_SHARE_READ |
CreateDisposition |
FILE_OPEN |
CreateOptions |
FILE_OPEN_REPARSE_POINT |
Neither type-selection flag nor a synchronous, backup-intent, or delete-on-close option is selected. Other valid-call requirements remain separate; this question does not presume overall success.
Requested clarification
Please distinguish the requirement, if any, on the parent handle’s existing granted-access mask from:
- Traversal checks involving the caller’s security context.
- Access checks for the child being opened.
A published provision or an attributable, scope-qualified clarification would help. If the published contract does not specify the parent-mask requirement, please distinguish that documentary limitation from a conclusion that an additional right either is or is not required.
Please identify any Windows-version, filesystem, or other conditions that limit the answer.
Existing supporting results
Taki, you mentioned having measured results ready to share. For any existing results relevant to this request, please identify:
- The tested request shape and environment.
- The access requested when opening the parent directory.
- Whether and how the resulting handle’s actual granted-access mask was independently established.
If only requested access is known, please identify that limitation. I am not requesting additional tests.
Scope
This request uses FILE_OPEN_REPARSE_POINT with ObjectAttributes.Attributes = 0; it is separate from the earlier OBJ_DONT_REPARSE tests and does not treat the flags as interchangeable.
Independent authorization of the parent or child, replacement prevention, ReOpenFile compatibility, and completion of a reader method remain outside this question.