Commit a52ed76
fast-import: disallow "feature import-marks" by default
As with export-marks in the previous commit, import-marks can access the
filesystem. This is significantly less dangerous than export-marks
because it only involves reading from arbitrary paths, rather than
writing them. However, it could still be surprising and have security
implications (e.g., exfiltrating data from a service that accepts
fast-import streams).
Let's lump it (and its "if-exists" counterpart) in with export-marks,
and enable the in-stream version only if --allow-unsafe-features is set.
Signed-off-by: Jeff King <peff@peff.net>1 parent 68061e3 commit a52ed76
File tree
3 files changed
+21
-6
lines changed- Documentation
- t
3 files changed
+21
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3344 | 3344 | | |
3345 | 3345 | | |
3346 | 3346 | | |
| 3347 | + | |
3347 | 3348 | | |
3348 | 3349 | | |
| 3350 | + | |
3349 | 3351 | | |
3350 | 3352 | | |
3351 | 3353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2106 | 2106 | | |
2107 | 2107 | | |
2108 | 2108 | | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
2109 | 2117 | | |
2110 | 2118 | | |
2111 | 2119 | | |
| |||
2114 | 2122 | | |
2115 | 2123 | | |
2116 | 2124 | | |
2117 | | - | |
| 2125 | + | |
2118 | 2126 | | |
2119 | 2127 | | |
2120 | 2128 | | |
| |||
2210 | 2218 | | |
2211 | 2219 | | |
2212 | 2220 | | |
2213 | | - | |
| 2221 | + | |
| 2222 | + | |
2214 | 2223 | | |
2215 | 2224 | | |
2216 | 2225 | | |
| |||
2221 | 2230 | | |
2222 | 2231 | | |
2223 | 2232 | | |
2224 | | - | |
| 2233 | + | |
| 2234 | + | |
2225 | 2235 | | |
2226 | 2236 | | |
2227 | 2237 | | |
| |||
2234 | 2244 | | |
2235 | 2245 | | |
2236 | 2246 | | |
2237 | | - | |
| 2247 | + | |
| 2248 | + | |
2238 | 2249 | | |
2239 | 2250 | | |
2240 | 2251 | | |
| |||
2247 | 2258 | | |
2248 | 2259 | | |
2249 | 2260 | | |
2250 | | - | |
| 2261 | + | |
| 2262 | + | |
2251 | 2263 | | |
2252 | 2264 | | |
2253 | 2265 | | |
| |||
0 commit comments