mount /usr/lib readonly

This commit is contained in:
zimoch committed 2026-10-07 17:01:33 +02:00
1 parent ced0608e6e
commit 695c5f060e
1 file changed
+2 -1
@@ -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