Repository navigation
Commit 1f8b351
committed
fix(capability): detect native Windows private paths in public-safe-outbound
The builtin fail-closed pre-submission scrub only recognized the POSIX spelling
of a private absolute path. On a Windows host the same private path written as
C:\Users\<name>\... or \\server\Users\<name>\... passed the scan with
hit_count 0 while its POSIX spelling was blocked, so the guard was silent on the
platform whose users spell their private paths that way. #6161 repaired the same
spelling class in the public/private boundary scan and named this rule as its
deliberately deferred successor owner.
Extend private_abs_path with drive-letter and UNC arms carrying the same root
keywords, and cover both native spellings plus a non-private drive path in the
scanner tests.
Closes #6220
Follow-up to #6161
Signed-off-by: JasonBuildAI <jasonbuildai@gmail.com>1 parent 3d7b72a commit 1f8b351
2 files changed
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
32 | 42 | | |
33 | 43 | | |
34 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
37 | 63 | | |
38 | 64 | | |
39 | 65 | | |
| |||
0 commit comments