From 548de1926a37ce70952ffe8b52d3177636839f33 Mon Sep 17 00:00:00 2001 From: quanhongfei <2506045831@qq.com> Date: Tue, 8 Dec 2020 17:15:06 +0800 Subject: [PATCH] fix ebtables-config file access permission (cherry picked from commit 5760ad329f80846c17a11fb9c0da01e7f2a34c9e) --- ebtables.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ebtables.spec b/ebtables.spec index e1a2ad0..e95521b 100644 --- a/ebtables.spec +++ b/ebtables.spec @@ -1,7 +1,7 @@ Name: ebtables Version: 2.0.11 -Release: 1 +Release: 2 Summary: A filtering tool for a Linux-based bridging firewall License: GPLv2+ URL: http://ebtables.sourceforge.net/ @@ -37,7 +37,7 @@ f=THANKS; iconv -f iso-8859-1 -t utf-8 $f -o $f.utf8 ; mv $f.utf8 $f %install install -d %{buildroot}{%{_initrddir},%{_unitdir},%{_libexecdir},%{_sysconfdir}/sysconfig} install -p %{SOURCE3} %{buildroot}%{_unitdir}/ -install -p %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/ebtables-config +install -p -D -m 600 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/ebtables-config chmod -x %{buildroot}%{_unitdir}/*.service install -m0755 %{SOURCE2} %{buildroot}%{_libexecdir}/ebtables %make_install LIBDIR="/%{_lib}/ebtables" BINDIR="%{_sbindir}" MANDIR="%{_mandir}" @@ -92,6 +92,12 @@ fi %doc %{_mandir}/man8/ebtables-legacy.8* %changelog +* Tue Dec 08 2020 quanhongfei - 2.0.11-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix ebtables-config file access permission + * Tue Aug 25 2020 gaihuiying - 2.0.11-1 - Type:enhancement - ID:NA