[lynis/el6] Install with -m600.
Christopher Meng
cicku at fedoraproject.org
Wed Dec 4 10:07:08 UTC 2013
commit 90f00bf7efd9f997d36291b86fd014fd8cdd201f
Author: Christopher Meng <rpm at cicku.me>
Date: Wed Dec 4 18:04:51 2013 +0800
Install with -m600.
lynis.spec | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/lynis.spec b/lynis.spec
index cf6c27e..8cf1cee 100644
--- a/lynis.spec
+++ b/lynis.spec
@@ -5,7 +5,6 @@ Summary: Security and system auditing tool
License: GPLv3
URL: http://cisofy.com/lynis/
Source0: http://cisofy.com/files/%{name}-%{version}.tar.gz
-Patch0: Allow-644-permissions-on-test-files.patch
BuildArch: noarch
Requires: audit
Requires: e2fsprogs
@@ -20,7 +19,6 @@ improve the security defense of the system.
%prep
%setup -q
-%patch0 -p1
%build
# Empty build
@@ -36,7 +34,8 @@ mkdir -p %{buildroot}%{_mandir}/man8
install -pm644 lynis.8 %{buildroot}%{_mandir}/man8
mkdir -p %{buildroot}%{_datadir}/%{name}/include/
-install -p include/* %{buildroot}%{_datadir}/%{name}/include/
+# Forced by upstream. Otherwise these scripts can't be executed.
+install -pm600 include/* %{buildroot}%{_datadir}/%{name}/include/
mkdir -p %{buildroot}%{_datadir}/%{name}/plugins/
install -pm644 plugins/* %{buildroot}%{_datadir}/%{name}/plugins/
More information about the scm-commits
mailing list