Skip to content

Commit

Permalink
create: Don't mention podman-run's --privileged flag in error messages
Browse files Browse the repository at this point in the history
crun-vm also works with engines for which privileged containers are
enabled in other ways, for instance Kubernetes.

Signed-off-by: Alberto Faria <[email protected]>
  • Loading branch information
albertofaria committed Apr 17, 2024
1 parent fafc72b commit 2025389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/create/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub fn create(args: &liboci_cli::Create, raw_args: &[impl AsRef<OsStr>]) -> 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"
);
}
}
Expand Down

0 comments on commit 2025389

Please sign in to comment.