]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: wrap unshare command when running with sanitizers 35580/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 12 Dec 2024 06:14:32 +0000 (15:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 12 Dec 2024 10:34:07 +0000 (19:34 +0900)
Follow-up for 219a6dbbf3ad0121ec43118d4fcdb7b375532cbe.
Fixes #35546.

mkosi.sanitizers/mkosi.postinst

index e83d05c6bc92f92a72706b72e6b345460389cc7f..af9db439112e1a0122442d328309cc07056a206d 100755 (executable)
@@ -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