mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 20:24:31 +00:00
rustjail: allow network sysctls
The network ns is shared with the guest skip looking for it in the spec Fixes: #1228 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
This commit is contained in:
parent
91c6ba74fa
commit
894fa42a57
@ -207,6 +207,11 @@ fn sysctl(oci: &Spec) -> Result<()> {
|
||||
}
|
||||
}
|
||||
|
||||
if key.starts_with("net.") {
|
||||
// the network ns is shared with the guest, don't expect to find it in spec
|
||||
continue;
|
||||
}
|
||||
|
||||
if contain_namespace(&linux.namespaces, "uts") {
|
||||
if key == "kernel.domainname" {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user