From ddbf57b7dddb4c1c3fe063c4e12543795d8f8b85 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 2a880889..2e2badb7 100644 --- a/tools/introspection.c +++ b/tools/introspection.c @@ -1824,8 +1824,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;