From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from enterprise01.smtp.diehl.com ([193.201.238.219]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1diKDL-0004V7-3Z for ptxdist@pengutronix.de; Thu, 17 Aug 2017 14:47:55 +0200 From: Thorsten LIEPERT Date: Thu, 17 Aug 2017 12:47:47 +0000 Message-ID: <5FEF6CF4-E9E8-4A56-AD64-143E8D1153CE@diehl.com> MIME-Version: 1.0 Content-Language: en-US Subject: [ptxdist] [PATCH] logrotate: fixed a local root exploit List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============0202744799==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: "ptxdist@pengutronix.de" --===============0202744799== Content-Type: multipart/signed; boundary="Apple-Mail=_47CD7936-2326-449B-9243-F6CE53A6ACAB"; protocol="application/pgp-signature"; micalg=pgp-sha512 Content-Language: en-US --Apple-Mail=_47CD7936-2326-449B-9243-F6CE53A6ACAB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" --- projectroot/etc/init.d/logrotate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projectroot/etc/init.d/logrotate b/projectroot/etc/init.d/lo= grotate index c10c12d33..9ad31e73c 100644 --- a/projectroot/etc/init.d/logrotate +++ b/projectroot/etc/init.d/logrotate @@ -24,10 +24,10 @@ logrotate(){ if [ -e "${filename}.${i}" ] then j=3D$(( i + 1 )) - mv -f ${filename}.${i} ${filename}.${j} + mv -f -- ${filename}.${i} ${filename}.${j} fi done && - mv -f ${filename} ${filename}.1 + mv -f -- ${filename} ${filename}.1 done } -- 2.13.0 Diehl AKO Stiftung & Co. KG, Pfannerstra=C3=9Fe 75-83, 88239 Wangen im Al= lg=C3=A4u Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner = (Mitglied) Sitz der Gesellschaft: Wangen i.A. =E2=80=93 Registergericht: Amtsgericht= Ulm HRA 620609 =E2=80=93 Pers=C3=B6nlich haftende Gesellschafterin: Dieh= l Verwaltungs-Stiftung =E2=80=93 Sitz: N=C3=BCrnberg =E2=80=93 Registerge= richt: Amtsgericht N=C3=BCrnberg HRA 11756 =E2=80=93 Vorstand: Dr.-Ing. E.h. Thomas Diehl (=E2=80=A0) (Vorsitzender), Herr Dip= l.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), Dipl.-= Kfm. Claus G=C3=BCnther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schu= nk, Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.= -Ing. (FH) Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus= Maier _________________________________________________________________________= __________________________ Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-M= ail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhal= ten haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaub= te Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Pub= likation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e= -mail contains confidential and/or legally protected information. Please = inform us if you have received this e-mail by mistake and delete it in su= ch a case. Each unauthorized reproduction, disclosure, alteration, distri= bution and/or publication of this e-mail is strictly prohibited. --Apple-Mail=_47CD7936-2326-449B-9243-F6CE53A6ACAB Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJZlZB8AAoJELUrTw2gWs0y6RAP/01A1iazg4EYNz4mEn0PnGRx XYaHn/RvyUBitbK3Ga8z50NhFfAE4Ow9wNR+Bd5eeKEgKkbNXMnIRMSyRUhbYsBh d2DGPEZwLkTUn0EQ+5/LEm0JELbpdX2m7A39FDh9JSuZZ0+jYP32CJQtOVliBMQk xG7dRfWB4a3O7dTNNi5jYgtcbFDc3ARo31E39JziEHEztUA79NqV/rzt78YHmCmz J8c9kTOtfdU+ySovXAplkPb5xSWcwgw0h0fRZSSqOAnL9kwHLRSOokPW+yIjqZRq r1sRL4M1QGmJjXf+kFIdB3ROdjkHIK6l3QWM/Y4uTT4rMzETtDICBfZRcG+/KakI 8jdfQ3adu/XhVmtK4Zv/aDIG6xIOz35BO4qf8ZdDT0zEqve011R/WUB/sQjbmT4t VV1E/kS6V0OBp1MaGvGsYhNnxrSgH+ce0PygDcsmxnRnpeuDt55kRC2Q3/hrjmWu Nx2ZLnrxOIsMSfZAZXXqkbUZJfzjSQT8br5//JGtzToaIQV6IqTwogwfILlJTsYU zIdvhNQOUMdjLyWa0g+nIHGyEqT5rjiC61ty5FXAlN9cTLwMEyKr3w2jLZfG2NxB 164FC4UpHMbUMFND4tQWbTOqdO7BEV9Uh/Nc5q623SueBzVYWY8SkLKTNRELEhlB QPsFX5nmV6tK2r2+5SzE =BUCr -----END PGP SIGNATURE----- --Apple-Mail=_47CD7936-2326-449B-9243-F6CE53A6ACAB-- --===============0202744799== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============0202744799==--