fix(oci): harden runtime HOME resolution

This commit is contained in:
VAIO73
2026-10-17 11:23:38 +00:00
parent ce1a3de719
commit b7b412b45d
4 changed files with 295 additions and 8 deletions
+1 -1
View File
@@ -1091,7 +1091,7 @@ ensure_runtime_home() {
passwd_file="${rootfs}/etc/passwd"
mount_ct_rootfs
if ! home=$(python3 "$OCI_RUNTIME_RESOLVER" --home "$passwd_file" "$uid" 2>>"${OCI_LOG:-/dev/stderr}"); then
oci_quiet pct unmount "$VMID" || true
oci_quiet pct unmount "$VMID" || die "$(translate "Could not unmount the container filesystem")"
return 0
fi
oci_quiet pct unmount "$VMID" || die "$(translate "Could not unmount the container filesystem")"