mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] logrotate: fixed a local root exploit
@ 2017-08-17 12:47 Thorsten LIEPERT
  0 siblings, 0 replies; only message in thread
From: Thorsten LIEPERT @ 2017-08-17 12:47 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 2245 bytes --]


---
 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/logrotate
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=$(( 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ße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner (Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. E.h. Thomas Diehl (†) (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, 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-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation 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 such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited.

[-- Attachment #1.2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

[-- Attachment #2: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-08-17 12:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-17 12:47 [ptxdist] [PATCH] logrotate: fixed a local root exploit Thorsten LIEPERT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox