qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pc-bios: ensure installed ROMs don't have execute permissions
@ 2025-05-30 15:21 Daniel P. Berrangé
  2025-05-31 18:02 ` Helge Deller
  2025-06-10  7:18 ` Philippe Mathieu-Daudé
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel P. Berrangé @ 2025-05-30 15:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: Cole Robinson, Helge Deller, 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.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
 pc-bios/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pc-bios/meson.build b/pc-bios/meson.build
index 79bb2e1800..3c41620044 100644
--- a/pc-bios/meson.build
+++ b/pc-bios/meson.build
@@ -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')
-- 
2.49.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] pc-bios: ensure installed ROMs don't have execute permissions
  2025-05-30 15:21 [PATCH] pc-bios: ensure installed ROMs don't have execute permissions Daniel P. Berrangé
@ 2025-05-31 18:02 ` Helge Deller
  2025-06-10  7:18 ` Philippe Mathieu-Daudé
  1 sibling, 0 replies; 3+ messages in thread
From: Helge Deller @ 2025-05-31 18:02 UTC (permalink / raw)
  To: Daniel P. Berrangé, qemu-devel; +Cc: Cole Robinson

On 5/30/25 17:21, Daniel P. Berrangé wrote:
> 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.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>

Reviewed-by: Helge Deller <deller@gmx.de>
Tested-by: Helge Deller <deller@gmx.de>

Thanks!
Helge

> ---
>   pc-bios/meson.build | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/pc-bios/meson.build b/pc-bios/meson.build
> index 79bb2e1800..3c41620044 100644
> --- a/pc-bios/meson.build
> +++ b/pc-bios/meson.build
> @@ -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')



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] pc-bios: ensure installed ROMs don't have execute permissions
  2025-05-30 15:21 [PATCH] pc-bios: ensure installed ROMs don't have execute permissions Daniel P. Berrangé
  2025-05-31 18:02 ` Helge Deller
@ 2025-06-10  7:18 ` Philippe Mathieu-Daudé
  1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-06-10  7:18 UTC (permalink / raw)
  To: Daniel P. Berrangé, qemu-devel; +Cc: Cole Robinson, Helge Deller

On 30/5/25 17:21, Daniel P. Berrangé wrote:
> 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.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
>   pc-bios/meson.build | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>

and queued, thanks!


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-06-10  7:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-30 15:21 [PATCH] pc-bios: ensure installed ROMs don't have execute permissions Daniel P. Berrangé
2025-05-31 18:02 ` Helge Deller
2025-06-10  7:18 ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).