From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Nov 21 14:00:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D261B953 for ; Thu, 21 Nov 2013 14:00:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B4E012977 for ; Thu, 21 Nov 2013 14:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rALE006r082561 for ; Thu, 21 Nov 2013 14:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rALE00RJ082558; Thu, 21 Nov 2013 14:00:00 GMT (envelope-from gnats) Resent-Date: Thu, 21 Nov 2013 14:00:00 GMT Resent-Message-Id: <201311211400.rALE00RJ082558@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kozlov Sergey Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 69436793 for ; Thu, 21 Nov 2013 13:51:43 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 394FB2922 for ; Thu, 21 Nov 2013 13:51:43 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rALDphdr060839 for ; Thu, 21 Nov 2013 13:51:43 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rALDphQo060835; Thu, 21 Nov 2013 13:51:43 GMT (envelope-from nobody) Message-Id: <201311211351.rALDphQo060835@oldred.freebsd.org> Date: Thu, 21 Nov 2013 13:51:43 GMT From: Kozlov Sergey To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/184143: [patch] secyrity/lynis incorrect permissions for data files X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Nov 2013 14:00:01 -0000 >Number: 184143 >Category: ports >Synopsis: [patch] secyrity/lynis incorrect permissions for data files >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 21 14:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Kozlov Sergey >Release: 9.1-RELEASE-p7 >Organization: ARC >Environment: FreeBSD sonya 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #4: Tue Sep 10 18:39:35 EEST 2013 root@sonya:/usr/obj/usr/src/sys/GENERIC amd64 >Description: New version of lynis demands strict permissions on %%DATADIR%%/include/tests_* files, no more than 0600, but the port installs the files with mode 0444. When the lynis is called with the files with bad permissions, all of them are skipped: root# lynis -c -Q .. [+] General ------------------------------------ - Running test category storage... [ SKIPPED ] [+] General ------------------------------------ - Running test category storage_nfs... [ SKIPPED ] .. - [15:37:27] Warning: Invalid permissions on tests file tests_storage [test:NONE] [impact:H] - [15:37:27] Warning: Invalid permissions on tests file tests_storage_nfs [test:NONE] [impact:H] .. >How-To-Repeat: Install the lynis-1.3.5, call root# lynis -c -Q >Fix: Correct the pkg-plist so the package files will be installed with the correct modes Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 334484) +++ Makefile (working copy) @@ -3,6 +3,7 @@ PORTNAME= lynis PORTVERSION= 1.3.5 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://cisofy.com/files/ Index: pkg-plist =================================================================== --- pkg-plist (revision 334484) +++ pkg-plist (working copy) @@ -22,6 +22,7 @@ %%DATADIR%%/include/parameters %%DATADIR%%/include/profiles %%DATADIR%%/include/report +@mode 0400 %%DATADIR%%/include/tests_accounting %%DATADIR%%/include/tests_authentication %%DATADIR%%/include/tests_banners @@ -63,6 +64,7 @@ %%DATADIR%%/include/tests_tooling %%DATADIR%%/include/tests_virtualization %%DATADIR%%/include/tests_webservers +@mode @dirrm %%DATADIR%%/include @dirrm %%DATADIR%%/dev/openbsd @dirrm %%DATADIR%%/dev >Release-Note: >Audit-Trail: >Unformatted: