[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.5.13-8-g2dd4e5b



The following commit has been merged in the master branch:
commit 2dd4e5bb7d901180d431f6c468bc2ebe8c48ed28
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Jun 9 14:30:15 2013 +0200

    coll/hardening-info: Skip files in /usr/lib/debug
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/collection/hardening-info b/collection/hardening-info
index 2d60ac6..b92bd37 100755
--- a/collection/hardening-info
+++ b/collection/hardening-info
@@ -67,9 +67,8 @@ my $open_hardening_info = sub {
 
 foreach my $bin ($info->sorted_index) {
     next unless $info->index ($bin)->is_file;
-    # Skip kernel modules - most of the checks do not apply to the
-    # kernel.
-    next if $bin =~ m/\.ko$/o;
+    # Skip kernel modules and debug files
+    next if $bin =~ m/\.ko$/o or $bin =~ m{\A usr/lib/debug/ }xsm;
     my $finfo = $info->file_info ($bin);
     next unless $finfo =~ m/\bELF\b/o;
     $open_hardening_info->() unless %opts;
diff --git a/debian/changelog b/debian/changelog
index ebcf1c0..4aa9cd3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,9 @@ lintian (2.5.14) UNRELEASED; urgency=low
   * checks/fields.desc:
     + [NT] Fix typo, thanks to Adrien Cunin.
 
+  * coll/hardening-info:
+    + [NT] Skip files in usr/lib/debug/.
+
   * lib/Lintian/{Path,Util}.pm:
     + [NT] Remove deprecated methods.
 

-- 
Debian package checker


Reply to: