test: fix permissions of the ASan udev workaround

otherwise udev complains about the file being world-writable:
systemd-udevd[228]: Configuration file /etc/udev/rules.d/00-set-LD_PRELOAD.rules is marked world-writable. Please remove world writability permission bits. Proceeding anyway.

Fixes: systemd/systemd-centos-ci#354
This commit is contained in:
Frantisek Sumsal 2021-03-10 12:30:04 +01:00 committed by Yu Watanabe
parent 451ba55fec
commit 5acfe54e98

View file

@ -744,6 +744,7 @@ mkdir -p /etc/udev/rules.d
cat > /etc/udev/rules.d/00-set-LD_PRELOAD.rules << INNER_EOF
SUBSYSTEM=="block", ENV{LD_PRELOAD}="$ASAN_RT_PATH"
INNER_EOF
chmod 0644 /etc/udev/rules.d/00-set-LD_PRELOAD.rules
# The 'mount' utility doesn't behave well under libasan, causing unexpected
# fails during boot and subsequent test results check: