From 2f027556093c30f061d3b64d694fad623a149990 Mon Sep 17 00:00:00 2001 From: Giuliano Belinassi Date: Mon, 14 Oct 2024 10:50:30 -0300 Subject: [PATCH] Fix issues related to SLE Micro SLE Micro contains many security features and a transactional filesystem that needs to be taken into account when applying a livepatch. Signed-off-by: Giuliano Belinassi --- tools/introspection.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/introspection.c b/tools/introspection.c index b5235f8e..cab1ded8 100644 --- a/tools/introspection.c +++ b/tools/introspection.c @@ -1825,8 +1825,10 @@ extract_ulp_from_so_to_mem(const char *livepatch, bool revert, char **out, /* Get full path to patch buffer. */ if (realpath(livepatch, &path_buffer[path_size]) == NULL) { - WARN("Unable to retrieve realpath to %s", livepatch); - return 0; + /* If we can't figure out the realpath, then use the path it was given to + us. */ + DEBUG("Unable to retrieve realpath to %s: %s", livepatch, libpulp_strerror(errno)); + strcpy(&path_buffer[path_size], livepatch); } path_size = strlen(path_buffer) + 1;