Skip to content

Commit

Permalink
Fix issues related to SLE Micro
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
giulianobelinassi committed Oct 17, 2024
1 parent 297c34d commit 2f02755
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/introspection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2f02755

Please sign in to comment.