Do one add_seals call, rather than one per flag. (#4366)

When setting up a copy on write image, we add several seals, to prevent
the image from being resized or modified. Set all the seals in a single
call, rather than doing one call per seal.
This commit is contained in:
Dan Gohman
2022-07-01 16:00:18 -07:00
committed by GitHub
parent f54ec712ef
commit a2197ebbeb
3 changed files with 10 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ cfg-if = "1.0"
backtrace = { version = "0.3.61" }
rand = "0.8.3"
anyhow = "1.0.38"
memfd = { version = "0.4.1", optional = true }
memfd = { version = "0.6.1", optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
mach = "0.3.2"