]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: fix permissions of the ASan udev workaround
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 10 Mar 2021 11:30:04 +0000 (12:30 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Mar 2021 15:28:13 +0000 (00:28 +0900)
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
test/test-functions

index 54f884cdec78fde8b070658f28d73fe5c06e8932..d7f7967e2ffcca4fa77963852e9ed72f2adefffb 100644 (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: