public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] logrotate: /var/log/portage/elog "insecure permissions"?
  @ 2011-08-07 15:20 99%       ` Florian Philipp
  0 siblings, 0 replies; 1+ results
From: Florian Philipp @ 2011-08-07 15:20 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1418 bytes --]

Am 07.08.2011 02:22, schrieb Mick:
> 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
>>> ...
>>> }
>>>
>>> Disclaimer: I've not really tried this (yet) but I think I'm able to
>>> read changelogs and man-pages. ;-)
>>
>> 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: 
> Operation not permitted
> 
> 
> This is my /etc/logrotate.d/elog-save-summary:
> ===================================
> /var/log/portage/elog/summary.log {
>  su portage portage
>     missingok
>     nocreate
>     delaycompress
> }
> ===================================
> 
> # ls -la /var/log/portage/elog/summary.log
> -rw-rw-r-- 1 root portage 4326 Aug  6 09:44 /var/log/portage/elog/summary.log
> 
> Can you see anything amiss?

At least on my system, /var/log/portage has the following permissions:
drwxr-xr-x root root

Only root can write, therefore the config must read

/var/log/portage/elog/summary.log {
 su root portage
 missingok
 nocreate
 delaycompress
}

Hope this helps,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2011-08-05 15:22     [gentoo-user] logrotate: /var/log/portage/elog "insecure permissions"? Jarry
2011-08-05 15:59     ` Florian Philipp
2011-08-05 22:08       ` Neil Bothwick
2011-08-07  0:22         ` Mick
2011-08-07 15:20 99%       ` Florian Philipp

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