From 555b7738fe2f699af6d57712cf75330f012b4e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bombo?= Date: Fri, 1 May 2026 15:12:22 -0500 Subject: [PATCH] runtime-rs: align virtiofsd args on runtime-go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Runtime-go doesn't hardcode --sandbox none --seccomp none [1], so mirror that in runtime-rs. [1]: https://github.com/kata-containers/kata-containers/blob/733ccb3254460c9f250a178fc41a5da0a4546de9/src/runtime/virtcontainers/virtiofsd.go#L183 Signed-off-by: Aurélien Bombo --- .../resource/src/share_fs/share_virtio_fs_standalone.rs | 4 ---- src/tools/agent-ctl/src/vm/share_fs_utils.rs | 2 -- 2 files changed, 6 deletions(-) diff --git a/src/runtime-rs/crates/resource/src/share_fs/share_virtio_fs_standalone.rs b/src/runtime-rs/crates/resource/src/share_fs/share_virtio_fs_standalone.rs index 35e8015670..2e181b75af 100644 --- a/src/runtime-rs/crates/resource/src/share_fs/share_virtio_fs_standalone.rs +++ b/src/runtime-rs/crates/resource/src/share_fs/share_virtio_fs_standalone.rs @@ -86,10 +86,6 @@ impl ShareVirtioFsStandalone { String::from(shared_dir), String::from("--cache"), self.config.virtio_fs_cache.clone(), - String::from("--sandbox"), - String::from("none"), - String::from("--seccomp"), - String::from("none"), ]; if !self.config.virtio_fs_extra_args.is_empty() { diff --git a/src/tools/agent-ctl/src/vm/share_fs_utils.rs b/src/tools/agent-ctl/src/vm/share_fs_utils.rs index 33adf85fca..afac26cc50 100644 --- a/src/tools/agent-ctl/src/vm/share_fs_utils.rs +++ b/src/tools/agent-ctl/src/vm/share_fs_utils.rs @@ -104,8 +104,6 @@ fn virtiofsd_args(cfg: SharedFsInfo, shared_dir: &str, sock_path: &str) -> Resul String::from(shared_dir), String::from("--cache"), cfg.virtio_fs_cache.clone(), - String::from("--sandbox"), - String::from("none"), ]; if !cfg.virtio_fs_extra_args.is_empty() {