mkosi: wrap unshare command when running with sanitizers

Follow-up for 219a6dbbf3.
Fixes #35546.
This commit is contained in:
Yu Watanabe
2024-12-12 19:34:07 +09:00
parent 2e6025b1b1
commit ef9a3241b3
+2 -1
View File
@@ -78,6 +78,7 @@ wrap=(
su
tar
tgtd
unshare
useradd
userdel
veritysetup
@@ -100,7 +101,7 @@ for bin in "${wrap[@]}"; do
cat >"$BUILDROOT/$target" <<EOF
#!/bin/bash
# Preload the ASan runtime DSO, otherwise ASAn will complain
# Preload the ASan runtime DSO, otherwise ASan will complain
export LD_PRELOAD="$ASAN_RT_PATH"
# Disable LSan to speed things up, since we don't care about leak reports
# from 'external' binaries