Blame 0035-dracut-install-error-out-if-ldd-reports-no-execution.patch
|
Harald Hoyer |
adf00e |
From b4dc22cab7b8b071c8a150b9c61edaa247bacb6a Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
adf00e |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
adf00e |
Date: Thu, 18 Apr 2013 12:54:55 +0200
|
|
Harald Hoyer |
adf00e |
Subject: [PATCH] dracut-install: error out, if ldd reports no execution
|
|
Harald Hoyer |
adf00e |
permission
|
|
Harald Hoyer |
adf00e |
|
|
Harald Hoyer |
adf00e |
This turns off lazy resolving on noexec mounted tmp directories.
|
|
Harald Hoyer |
adf00e |
|
|
Harald Hoyer |
adf00e |
https://bugzilla.redhat.com/show_bug.cgi?id=953426
|
|
Harald Hoyer |
adf00e |
---
|
|
Harald Hoyer |
adf00e |
install/dracut-install.c | 6 ++++++
|
|
Harald Hoyer |
adf00e |
1 file changed, 6 insertions(+)
|
|
Harald Hoyer |
adf00e |
|
|
Harald Hoyer |
adf00e |
diff --git a/install/dracut-install.c b/install/dracut-install.c
|
|
Harald Hoyer |
adf00e |
index 5040dea..2d0412c 100644
|
|
Harald Hoyer |
adf00e |
--- a/install/dracut-install.c
|
|
Harald Hoyer |
adf00e |
+++ b/install/dracut-install.c
|
|
Harald Hoyer |
adf00e |
@@ -285,6 +285,12 @@ static int resolve_deps(const char *src)
|
|
Harald Hoyer |
adf00e |
|
|
Harald Hoyer |
adf00e |
log_debug("ldd: '%s'", buf);
|
|
Harald Hoyer |
adf00e |
|
|
Harald Hoyer |
adf00e |
+ if (strstr(buf, "you do not have execution permission")) {
|
|
Harald Hoyer |
adf00e |
+ log_error(buf);
|
|
Harald Hoyer |
adf00e |
+ ret+=1;
|
|
Harald Hoyer |
adf00e |
+ break;
|
|
Harald Hoyer |
adf00e |
+ }
|
|
Harald Hoyer |
adf00e |
+
|
|
Harald Hoyer |
adf00e |
if (strstr(buf, "not a dynamic executable"))
|
|
Harald Hoyer |
adf00e |
break;
|
|
Harald Hoyer |
adf00e |
|