From: Harald Hoyer Date: Thu, 18 Apr 2013 10:54:55 +0000 (+0200) Subject: dracut-install: error out, if ldd reports no execution permission X-Git-Tag: 028~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4dc22cab7b8b071c8a150b9c61edaa247bacb6a;p=thirdparty%2Fdracut.git dracut-install: error out, if ldd reports no execution permission This turns off lazy resolving on noexec mounted tmp directories. https://bugzilla.redhat.com/show_bug.cgi?id=953426 --- diff --git a/install/dracut-install.c b/install/dracut-install.c index 5040dea77..2d0412c17 100644 --- a/install/dracut-install.c +++ b/install/dracut-install.c @@ -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;