From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qpr99-0002I9-Ve for garchives@archives.gentoo.org; Sun, 07 Aug 2011 00:23:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3BB1021C0CF; Sun, 7 Aug 2011 00:23:02 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 77AEC21C03F for ; Sun, 7 Aug 2011 00:21:28 +0000 (UTC) Received: by wwf25 with SMTP id 25so1028833wwf.10 for ; Sat, 06 Aug 2011 17:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=/+bAFEBmXuJRwF7fRbS3OGES9Hl2SvYEvEvz+GPAKKI=; b=I0WD2h0ufX0TLp9MSjAC5qWJ2lwloEJOiOmsCD95xkwkAvj+cuiVk5ZhYbwtk5Tk0s edDM0HWR/xEay3bbaZ7LjbBet2nQfC/hAM2IK2CpMCjJAUc4dQxjNqxVvulJQn6gHhNJ u/b7gzOQLwuq9MTYH+lu3r3tAXxK+WmM+dlbY= Received: by 10.216.163.16 with SMTP id z16mr1916670wek.5.1312676487598; Sat, 06 Aug 2011 17:21:27 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa [217.169.3.230]) by mx.google.com with ESMTPS id fn12sm3382161wbb.4.2011.08.06.17.21.25 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 06 Aug 2011 17:21:26 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] logrotate: /var/log/portage/elog "insecure permissions"? Date: Sun, 7 Aug 2011 01:22:00 +0100 User-Agent: KMail/1.13.7 (Linux/2.6.38-gentoo-r6; KDE/4.6.3; x86_64; ; ) References: <4E3C0AD2.6080409@gmail.com> <4E3C1344.5010903@binarywings.net> <20110805230838.315417e1@zaphod.digimed.co.uk> In-Reply-To: <20110805230838.315417e1@zaphod.digimed.co.uk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1873848.cY4HvtMEiY"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201108070122.11290.michaelkintzios@gmail.com> X-Archives-Salt: X-Archives-Hash: afb425eba47b74c13aebf40520aa5465 --nextPart1873848.cY4HvtMEiY Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Friday 05 Aug 2011 23:08:38 Neil Bothwick wrote: > On Fri, 05 Aug 2011 17:59:00 +0200, Florian Philipp wrote: > > Yes, this was introduced in 3.8.0 to fix security issues [1]. Change > > your config to look like this: > > /var/log/portage/elog/summary.log { > > su portage portage > > ... > > } > >=20 > > Disclaimer: I've not really tried this (yet) but I think I'm able to > > read changelogs and man-pages. ;-) >=20 > Yes that fixes it. The latest portage ebuilds include an updated config > file. Hmm ... it still complains here! error: error setting owner of /var/log/portage/elog/summary.log-20110801.gz= :=20 Operation not permitted This is my /etc/logrotate.d/elog-save-summary: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D /var/log/portage/elog/summary.log { su portage portage missingok nocreate delaycompress } =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # ls -la /var/log/portage/elog/summary.log =2Drw-rw-r-- 1 root portage 4326 Aug 6 09:44 /var/log/portage/elog/summary= =2Elog Can you see anything amiss? =2D-=20 Regards, Mick --nextPart1873848.cY4HvtMEiY Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEABECAAYFAk492rMACgkQVTDTR3kpaLYsTwCg6AYYItNXr8ZZYfn9yB7M5XVz qp8AniJ7xdLRYWRvqYAMGAxOjD71g28i =pfgI -----END PGP SIGNATURE----- --nextPart1873848.cY4HvtMEiY--