mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Require namespaces to be disabled explicitly
PiperOrigin-RevId: 258730797 Change-Id: I5a1df23c5176a3cecd5a343483500550f27adf44
This commit is contained in:
parent
691104c851
commit
2300141bdb
|
@ -660,6 +660,9 @@ std::vector<sock_filter> PolicyBuilder::ResolveBpfFunc(BpfFunc f) {
|
|||
}
|
||||
|
||||
::sapi::StatusOr<std::unique_ptr<Policy>> PolicyBuilder::TryBuild() {
|
||||
CHECK_NE(use_namespaces_, disable_namespaces_)
|
||||
<< "Namespaces should either be enabled (by calling EnableNamespaces(), "
|
||||
"AddFile(), etc.) or disabled (by calling DisableNamespaces())";
|
||||
if (!last_status_.ok()) {
|
||||
return last_status_;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user