Skip to content

Commit

Permalink
Add levels for handling spec validation via flag.
Browse files Browse the repository at this point in the history
Replaces the flag "unsafe-skip-restore-spec-validation" with
"restore-spec-validation" which allows the user to set the level of restore
spec validation such as ignore, warning or enforce. This allows user to skip
validation if required. By default, the flag will be set to "enforce" which
will perform spec validation.

PiperOrigin-RevId: 713441769
  • Loading branch information
nybidari authored and gvisor-bot committed Jan 9, 2025
1 parent 9803629 commit 838e292
Show file tree
Hide file tree
Showing 8 changed files with 555 additions and 412 deletions.
1 change: 1 addition & 0 deletions runsc/boot/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ go_library(
"//runsc/profile",
"//runsc/specutils",
"//runsc/specutils/seccomp",
"//runsc/specvalidation",
"//runsc/version",
"@com_github_opencontainers_runtime_spec//specs-go:go_default_library",
"@com_github_syndtr_gocapability//capability:go_default_library",
Expand Down
Loading

0 comments on commit 838e292

Please sign in to comment.