summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-05-08 17:00:19 +0200
committerEvgeny Vereshchagin <evvers@ya.ru>2018-05-08 18:00:19 +0300
commit3c31f3a575795428d3e322cdcf61e54a1482835d (patch)
tree11d9328ce3b5e55a842af09f3037007fdbc8e848 /tools
parent3c88cbeed42867841ee53d49dd558c45615a5549 (diff)
downloadsystemd-3c31f3a575795428d3e322cdcf61e54a1482835d.tar.gz
tools/oss-fuzz: install private shared library non-executable (#8927)
Apparently oss-fuzz's "bad build check" is confused by the library. Let's make it non-executable, so the checker ignores it. Should fix https://github.com/google/oss-fuzz/issues/1330.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/oss-fuzz.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/oss-fuzz.sh b/tools/oss-fuzz.sh
index 3682e5b0c6..7cc7df5106 100755
--- a/tools/oss-fuzz.sh
+++ b/tools/oss-fuzz.sh
@@ -46,8 +46,8 @@ df=$build/dns-fuzzing
git clone --depth 1 https://github.com/CZ-NIC/dns-fuzzing $df
zip -jqr $OUT/fuzz-dns-packet_seed_corpus.zip $df/packet
-mkdir -p $OUT/src/shared
-mv $build/src/shared/libsystemd-shared-*.so $OUT/src/shared
+# install the private shared library without executable permissions
+install -Dt $OUT/src/shared/ -m 0644 $build/src/shared/libsystemd-shared-*.so
find $build -maxdepth 1 -type f -executable -name "fuzz-*" -exec mv {} $OUT \;
cp src/fuzz/*.options $OUT