Hi Michael,

On Tue, Aug 6, 2019 at 1:12 AM Michael Biebl <[email protected]> wrote:
>
> It just felt weird that all packages with PE executable either ignored
> the lintian error or added an override.

Thank you for this remark. I noticed that grub2 overrides similar
tags. We will look into it.

> Since I can't really be bothered to add an override, I'll just close
> this bug report then.

Please feel free to use the attached patch, which I created and tested
for you (although it may not cover all architectures). Lintian may
offer to add overrides interactively in the future.

Kind regards

Felix Lechner
From 3ab0ec5551396e0e51577eb162564e2f35c1d95c Mon Sep 17 00:00:00 2001
From: Felix Lechner <[email protected]>
Date: Wed, 7 Aug 2019 04:35:57 -0700
Subject: [PATCH] Override Lintian error about missing security features in
 PE32+ binaries.

These files may or may not need to be marked as executable, but many
packages that ship similar files override or ignore the Lintian error.

For example, grub2 ship override files with the following remark:
"These aren't Windows executables, and these features wouldn't be very
useful."
---
 debian/systemd.lintian-overrides | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/systemd.lintian-overrides b/debian/systemd.lintian-overrides
index f47d5b78d6..a8dfc4a106 100644
--- a/debian/systemd.lintian-overrides
+++ b/debian/systemd.lintian-overrides
@@ -1,2 +1,4 @@
 systemd: maintainer-script-calls-systemctl
+systemd: portable-executable-missing-security-features usr/lib/systemd/boot/efi/linuxx64.efi.stub ASLR DEP/NX
+systemd: portable-executable-missing-security-features usr/lib/systemd/boot/efi/systemd-bootx64.efi ASLR DEP/NX
 systemd: possibly-insecure-handling-of-tmp-files-in-maintainer-script
-- 
2.20.1

_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to