]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-install: error out, if ldd reports no execution permission
authorHarald Hoyer <harald@redhat.com>
Thu, 18 Apr 2013 10:54:55 +0000 (12:54 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 18 Apr 2013 10:54:55 +0000 (12:54 +0200)
This turns off lazy resolving on noexec mounted tmp directories.

https://bugzilla.redhat.com/show_bug.cgi?id=953426

install/dracut-install.c

index 5040dea7771680ecff839a4232d971e04c12e1f2..2d0412c170c0e22c803f61aa970fe9d19f8a915e 100644 (file)
@@ -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;