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:
Snir Sheriber 2021-01-05 16:36:22 +02:00
parent 91c6ba74fa
commit 894fa42a57

View File

@ -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;