1 |
Am 07.08.2011 02:22, schrieb Mick: |
2 |
> On Friday 05 Aug 2011 23:08:38 Neil Bothwick wrote: |
3 |
>> On Fri, 05 Aug 2011 17:59:00 +0200, Florian Philipp wrote: |
4 |
>>> Yes, this was introduced in 3.8.0 to fix security issues [1]. Change |
5 |
>>> your config to look like this: |
6 |
>>> /var/log/portage/elog/summary.log { |
7 |
>>> su portage portage |
8 |
>>> ... |
9 |
>>> } |
10 |
>>> |
11 |
>>> Disclaimer: I've not really tried this (yet) but I think I'm able to |
12 |
>>> read changelogs and man-pages. ;-) |
13 |
>> |
14 |
>> Yes that fixes it. The latest portage ebuilds include an updated config |
15 |
>> file. |
16 |
> |
17 |
> Hmm ... it still complains here! |
18 |
> |
19 |
> error: error setting owner of /var/log/portage/elog/summary.log-20110801.gz: |
20 |
> Operation not permitted |
21 |
> |
22 |
> |
23 |
> This is my /etc/logrotate.d/elog-save-summary: |
24 |
> =================================== |
25 |
> /var/log/portage/elog/summary.log { |
26 |
> su portage portage |
27 |
> missingok |
28 |
> nocreate |
29 |
> delaycompress |
30 |
> } |
31 |
> =================================== |
32 |
> |
33 |
> # ls -la /var/log/portage/elog/summary.log |
34 |
> -rw-rw-r-- 1 root portage 4326 Aug 6 09:44 /var/log/portage/elog/summary.log |
35 |
> |
36 |
> Can you see anything amiss? |
37 |
|
38 |
At least on my system, /var/log/portage has the following permissions: |
39 |
drwxr-xr-x root root |
40 |
|
41 |
Only root can write, therefore the config must read |
42 |
|
43 |
/var/log/portage/elog/summary.log { |
44 |
su root portage |
45 |
missingok |
46 |
nocreate |
47 |
delaycompress |
48 |
} |
49 |
|
50 |
Hope this helps, |
51 |
Florian Philipp |