From c747852bce035b1cd355310361784f168911f0ed Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Tue, 27 Aug 2024 23:41:45 -0700 Subject: [PATCH] agent: image-rs: check xattrs for image unpacking This commit includes a fix for pulling an image on platforms that do not support xattr. Some platforms/file-systems do not support xattrs, this would make the image pull fail because of failing to set xattr. This commit will check whether the target path supports xattr. If yes, the unpacking will maintain xattrs; if not, it will not set xattrs. Signed-off-by: Archana Shinde --- src/agent/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent/Cargo.toml b/src/agent/Cargo.toml index b545449b89..3f6f9992b4 100644 --- a/src/agent/Cargo.toml +++ b/src/agent/Cargo.toml @@ -35,7 +35,7 @@ async-recursion = "0.3.2" futures = "0.3.30" # Async runtime -tokio = { version = "1.38.0", features = ["full"] } +tokio = { version = "1.39.0", features = ["full"] } tokio-vsock = "0.3.4" netlink-sys = { version = "0.7.0", features = ["tokio_socket"] } @@ -77,7 +77,7 @@ strum = "0.26.2" strum_macros = "0.26.2" # Image pull/decrypt -image-rs = { git = "https://github.com/confidential-containers/guest-components", rev = "51e967045296570abb4ad8bef215e92323306ed4", default-features = false, optional = true } +image-rs = { git = "https://github.com/confidential-containers/guest-components", rev = "70f570eb50f1791ff3b2a5e941b662a7bd3c46bd", default-features = false, optional = true } # Agent Policy regorus = { version = "0.1.4", default-features = false, features = [