Skip to contentSkip to conversation

pc-bios: ensure installed ROMs don't have execute permissions

PATCH In review Daniel P. Berrangé 3 participants 3 messages May 30, 2025 – Jun 10, 2025 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pc-bios: ensure installed ROMs don't have execute permissions

We have been inconsistent about whether ROMS stored in git have execute permission set, and by default meson will preserve source file permissions when installing files. This has caused periodic problems in RPM packaging as executable binary files get analysed by various tools/linters, which can trip up on the ROMs.

Tell meson explicitly that all the ROMs should be without execute permission when installed.

---
 pc-bios/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
pc-bios/meson.build +1 -1
index 79bb2e1800..3c41620044 100644
@@ -88,7 +88,7 @@ blobs = [
 ]
 
 if get_option('install_blobs')
-  install_data(blobs, install_dir: qemu_datadir)
+  install_data(blobs, install_dir: qemu_datadir, install_mode: 'rw-r--r--')
 endif
 
 subdir('descriptors')
Signature · 1 line
2.49.0
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 10 lines · Daniel P. Berrangé

We have been inconsistent about whether ROMS stored in git have execute permission set, and by default meson will preserve source file permissions when installing files. This has caused periodic problems in RPM packaging as executable binary files get analysed by various tools/linters, which can trip up on the ROMs.

Tell meson explicitly that all the ROMs should be without execute permission when installed.

Thanks!
Helge

Quoted 17 lines
---
  pc-bios/meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
pc-bios/meson.build +1 -1
index 79bb2e1800..3c41620044 100644
@@ -88,7 +88,7 @@ blobs = [
  ]
 
  if get_option('install_blobs')
-  install_data(blobs, install_dir: qemu_datadir)
+  install_data(blobs, install_dir: qemu_datadir, install_mode: 'rw-r--r--')
  endif
 
  subdir('descriptors')
Reviewed-by on v1 1/1
#2 lore raw
In reply to Daniel P. Berrangé
Quoted 6 lines · Daniel P. Berrangé

We have been inconsistent about whether ROMS stored in git have execute permission set, and by default meson will preserve source file permissions when installing files. This has caused periodic problems in RPM packaging as executable binary files get analysed by various tools/linters, which can trip up on the ROMs.

Quoted 7 lines

Tell meson explicitly that all the ROMs should be without execute permission when installed.

---
  pc-bios/meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

and queued, thanks!