aboutsummaryrefslogtreecommitdiff
path: root/elf/tst-ldconfig-bad-aux-cache.root
diff options
context:
space:
mode:
authorAlexandra Hájková <ahajkova@redhat.com>2019-05-09 13:51:40 +0200
committerAlexandra Hájková <ahajkova@redhat.com>2019-05-23 11:49:44 +0200
commit481c30cb9573a280649fbf27251e6a0f4af1b2b1 (patch)
tree64ece1a10542c4cba311ec77c0ff0b4922c07b7f /elf/tst-ldconfig-bad-aux-cache.root
parentcb755eede7abad9515d2194313ae3f9e1011791d (diff)
downloadglibc-481c30cb9573a280649fbf27251e6a0f4af1b2b1.zip
glibc-481c30cb9573a280649fbf27251e6a0f4af1b2b1.tar.gz
glibc-481c30cb9573a280649fbf27251e6a0f4af1b2b1.tar.bz2
elf: Add tst-ldconfig-bad-aux-cache test [BZ #18093]
This test corrupts /var/cache/ldconfig/aux-cache and executes ldconfig to check it will not segfault using the corrupted aux_cache. The test uses the test-in-container framework. Verified no regressions on x86_64.
Diffstat (limited to 'elf/tst-ldconfig-bad-aux-cache.root')
-rw-r--r--elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf2
-rw-r--r--elf/tst-ldconfig-bad-aux-cache.root/postclean.req0
2 files changed, 2 insertions, 0 deletions
diff --git a/elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf b/elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf
new file mode 100644
index 0000000..e1e74db
--- /dev/null
+++ b/elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf
@@ -0,0 +1,2 @@
+# This file was created to suppress a warning from ldconfig:
+# /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory
diff --git a/elf/tst-ldconfig-bad-aux-cache.root/postclean.req b/elf/tst-ldconfig-bad-aux-cache.root/postclean.req
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/elf/tst-ldconfig-bad-aux-cache.root/postclean.req