Repository navigation
Allow PrjFlt on Dev Drives through GVFS.Service - #2188
Tyrie Vella (tyrielv) wants to merge 6 commits into
Conversation
1751c38 to
29427e9
Compare
|
[KeithBot]:
Validation
🤖 KeithBot · claude-opus-5.5, gpt-6.1-sol, gemini-4-argon + approach review · reply on a thread to dispute |
|
[KeithBot]: ✅ Resolved · iteration 2 (
Validation
Approving. 🤖 KeithBot · claude-opus-5.5, gpt-6.1-sol, gemini-4-argon · reply on a thread to dispute |
Nathan Baird (ShiningMassXAcc)
left a comment
There was a problem hiding this comment.
Could you publish or link line/differential coverage for the new policy parser, configuration vetoes, and recovery handler, especially refusal, timeout, and nullable-wire compatibility paths? The exact-head unit-test jobs pass on both architectures, but I could not find a coverage report or gate showing which added lines they exercise. This is a non-blocking validation-visibility suggestion.
A Dev Drive can reject PrjFlt with 0x800701DE when no applicable allowance includes it. An unelevated mount cannot update that policy. Route unelevated ReFS attachment checks through GVFS.Service. After the volume rejects attachment, append PrjFlt to that volume's list. Keep inherited allowances separate and leave machine-wide lists unchanged. Recheck before replacement and verify the saved result. External edits to the same volume still require coordination. Gate updates behind gvfs.auto-allow-devdrive-filter, default on. Read fresh booleans through Git, including system includes and conditional client includes. Either scope can veto a write. Unreadable or invalid configuration prevents automatic updates. Separate the policy lock from driver-health work. Bound fsutil waits with a shared process budget and observe child exit during cleanup. Disable further automatic updates if child cleanup cannot complete. Record policy changes independently of the attachment outcome. If a busy volume retains its old policy, report that it needs a remount or restart. Never force-dismount the volume. Add unit tests for veto precedence, configuration errors, nullable wire compatibility, per-volume preservation, busy-write readback, recovery outcomes, and typed attachment decisions. Assisted-by: GitHub Copilot (Auto) Co-authored-by: Copilot <[email protected]> Signed-off-by: Tyrie Vella <[email protected]>
Read both the client and system boolean through the shared Git config reader. Keep system includes and conditional client includes. Use one deadline across attempts and pass the caller's tracer to the retry policy. Treat timeouts, truncated output, process failures, and unavailable enlistments as read failures. Do not select the default on failure. Wait for a cancelled child to exit before its process handle closes. Add isolated unit tests for scope, strict results, retry telemetry, timeouts, and process-start errors. Co-authored-by: Copilot <[email protected]>
Require the observed final attached-filter section and a complete last line before the service interprets an omitted volume list. Reject unfinished filter-list continuations and query diagnostics. Add unit tests for truncated captured outputs, incomplete queries before writes, and failed readback after an attempted update. Co-authored-by: Copilot <[email protected]>
Accept the attached-filter list at EOF without a final newline. Recognize the explicit empty-attached-list message and the antivirus-protection-disabled status line. Keep the final-section and unfinished-continuation guards for allowance lists. Share the manual remedy between the service and virtualization failure paths. Name the target volume, preserve its existing entries, and show setFiltersAllowed /volume without /f. Add regression tests for the producer output forms and the shared manual remedy on disabled and failed-policy requests. Co-authored-by: Copilot <[email protected]>
Require an explicit true value before the service updates a Dev Drive filter allowance. Preserve the client value as nullable so an unset key does not override an explicit system opt-in. A false value at either side still vetoes the update, and a client read failure fails closed. Keep ReFS attachment verification independent of the flag. Add unit tests for opt-in, both vetoes, read failures, and old-client requests through the recovery boundary. Signed-off-by: Tyrie Vella <[email protected]> Co-authored-by: Copilot <[email protected]>
Wait for an active Git configuration process to exit after the shared reader terminates it. Keep the upstream single-owner termination logic. Report a process error if the cleanup wait expires. Add tests that assert exit observation and prevent a second termination. Signed-off-by: Tyrie Vella <[email protected]> Co-authored-by: Copilot <[email protected]>
20d28b3 to
1b5a415
Compare
|
[KeithBot]: ✅ Resolved · iteration 3 (
Validation
Approving. 🤖 KeithBot · claude-opus-5.5, gpt-6.1-sol, gemini-4-argon · reply on a thread to dispute |
Problem and Context
A Dev Drive can reject the ProjFS filter (
PrjFlt) with0x800701DEwhen no applicable filter allowance includes it. A clone or mount then fails until an administrator updates the allowance and remounts the volume.GVFS.Servicealready enables and attaches ProjFS for unelevated callers. Extend that path to persist an allowance on the affected volume. Machine-wide allowances and Group Policy remain unchanged.Changes
PrjFltto that volume's allowance list. Retain the saved volume entries and keep inherited allowances separate.gvfs.auto-allow-devdrive-filterflag. An explicit true system or resolved client value opts in. The service reads the system value for each recovery request. An explicit false value on either side vetoes the update.fsutilwaits from retaining the driver-health lock.setFiltersAllowed /volumefor the target volume, warn that it replaces the saved volume list, and omit/f.fsutilcannot dismount a busy volume.Operational constraints
An explicit opt-in permits a persistent allowance on the affected Dev Drive, but only after attachment fails with the rejection code. Disabling the flag stops future automatic updates. It does not remove an existing allowance.
ReFS attachment verification requires the service. Existing volumes can still require one remount or restart before the new allowance takes effect.
Known gaps and deliberate decisions
GVFS.Serviceruns as LocalSystem and cannot read the caller's user configuration directly. The client sends its resolved value over the named pipe to preserve per-user and per-repository opt-outs. The service reads system configuration separately and treats a false value as an administrator veto.fsutilprovides no atomic conditional update. A simultaneous administrator edit to that same volume can still race. Manual policy edits require coordination with mount attempts. No atomic-update follow-up is planned.PrjFltoperation. It adds no caller impersonation or enlistment-ownership check. The administrator veto uses the service-selected Git installation's system configuration and its includes. Other Git installations and ProgramData-only configuration are not independent service vetoes.fsutiloutput prevents automatic writes and requires manual configuration. The parser cannot detect every truncation or an omitted middle section in otherwise complete-looking output. No localization follow-up is planned.