From 20253890fca2cfbbc34f01c2cf27ede30797d850 Mon Sep 17 00:00:00 2001 From: Alberto Faria Date: Wed, 17 Apr 2024 22:23:36 +0100 Subject: [PATCH] create: Don't mention podman-run's --privileged flag in error messages crun-vm also works with engines for which privileged containers are enabled in other ways, for instance Kubernetes. Signed-off-by: Alberto Faria --- src/commands/create/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/create/mod.rs b/src/commands/create/mod.rs index d092c86..58b2ea7 100644 --- a/src/commands/create/mod.rs +++ b/src/commands/create/mod.rs @@ -46,7 +46,7 @@ pub fn create(args: &liboci_cli::Create, raw_args: &[impl AsRef]) -> Resu && !any_is_cap_sys_admin(capabilities.inheritable()) && !any_is_cap_sys_admin(capabilities.permitted()) && !any_is_cap_sys_admin(capabilities.ambient()), - "crun-vm should not be used with --privileged" + "crun-vm is incompatible with privileged containers" ); } }