From 695c5f060e25e1040cd3feee51c82acfa6f5a159 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Fri, 4 Sep 2026 11:01:08 +0200 Subject: [PATCH] mount /usr/lib readonly --- configure/os/CONFIG_SITE.RHEL10-x86_64.Common | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure/os/CONFIG_SITE.RHEL10-x86_64.Common b/configure/os/CONFIG_SITE.RHEL10-x86_64.Common index a655c6514..e8d0cb0ca 100644 --- a/configure/os/CONFIG_SITE.RHEL10-x86_64.Common +++ b/configure/os/CONFIG_SITE.RHEL10-x86_64.Common @@ -1,7 +1,8 @@ include $(CONFIG)/os/CONFIG_SITE.linux-x86_64.Common # 32 bit wrapper -WRAP32BIT = unshare -mr sh -c 'mount --bind /opt/RHEL9/usr/lib /usr/lib && $$0 "$$@"' +# QEMU=qemu-i386 # needed if RHEL kernel ever stops supporting 32 bit mode +WRAP32BIT = unshare -mr sh -c 'mount --bind -o ro /opt/RHEL9/usr/lib /usr/lib && $(QEMU) $$0 "$$@"' # Improved error checking with clang CROSS_COMPILER_TARGET_ARCHS += RHEL10-x86_64-clang