mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-17 04:52:23 +00:00
runtime-rs: align virtiofsd args on runtime-go
Runtime-go doesn't hardcode --sandbox none --seccomp none [1],
so mirror that in runtime-rs.
[1]: 733ccb3254/src/runtime/virtcontainers/virtiofsd.go (L183)
Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user