Skip to content

Commit

Permalink
dracut-install: error out, if ldd reports no execution permission
Browse files Browse the repository at this point in the history
This turns off lazy resolving on noexec mounted tmp directories.

https://bugzilla.redhat.com/show_bug.cgi?id=953426
  • Loading branch information
haraldh committed Apr 18, 2013
1 parent 2b125c6 commit b4dc22c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install/dracut-install.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,12 @@ static int resolve_deps(const char *src)

log_debug("ldd: '%s'", buf);

if (strstr(buf, "you do not have execution permission")) {
log_error(buf);
ret+=1;
break;
}

if (strstr(buf, "not a dynamic executable"))
break;

Expand Down

0 comments on commit b4dc22c

Please sign in to comment.