1 |
Am 28.08.2011 20:44, schrieb Florian Philipp: |
2 |
> Am 28.08.2011 13:14, schrieb Mick: |
3 |
>> On Sunday 07 Aug 2011 16:20:18 Florian Philipp wrote: |
4 |
>>> Am 07.08.2011 02:22, schrieb Mick: |
5 |
>>>> On Friday 05 Aug 2011 23:08:38 Neil Bothwick wrote: |
6 |
>>>>> On Fri, 05 Aug 2011 17:59:00 +0200, Florian Philipp wrote: |
7 |
>>>>>> Yes, this was introduced in 3.8.0 to fix security issues [1]. Change |
8 |
>>>>>> your config to look like this: |
9 |
>>>>>> /var/log/portage/elog/summary.log { |
10 |
>>>>>> su portage portage |
11 |
>>>>>> ... |
12 |
>>>>>> } |
13 |
>>>>>> |
14 |
>>>>>> Disclaimer: I've not really tried this (yet) but I think I'm able to |
15 |
>>>>>> read changelogs and man-pages. ;-) |
16 |
>>>>> |
17 |
>>>>> Yes that fixes it. The latest portage ebuilds include an updated config |
18 |
>>>>> file. |
19 |
>>>> |
20 |
>>>> Hmm ... it still complains here! |
21 |
>>>> |
22 |
>>>> error: error setting owner of |
23 |
>>>> /var/log/portage/elog/summary.log-20110801.gz: Operation not permitted |
24 |
>>>> |
25 |
>>>> |
26 |
>>>> This is my /etc/logrotate.d/elog-save-summary: |
27 |
>>>> =================================== |
28 |
>>>> /var/log/portage/elog/summary.log { |
29 |
>>>> |
30 |
>>>> su portage portage |
31 |
>>>> |
32 |
>>>> missingok |
33 |
>>>> nocreate |
34 |
>>>> delaycompress |
35 |
>>>> |
36 |
>>>> } |
37 |
>>>> =================================== |
38 |
>>>> |
39 |
>>>> # ls -la /var/log/portage/elog/summary.log |
40 |
>>>> -rw-rw-r-- 1 root portage 4326 Aug 6 09:44 |
41 |
>>>> /var/log/portage/elog/summary.log |
42 |
>>>> |
43 |
>>>> Can you see anything amiss? |
44 |
>>> |
45 |
>>> At least on my system, /var/log/portage has the following permissions: |
46 |
>>> drwxr-xr-x root root |
47 |
>>> |
48 |
>>> Only root can write, therefore the config must read |
49 |
>>> |
50 |
>>> /var/log/portage/elog/summary.log { |
51 |
>>> su root portage |
52 |
>>> missingok |
53 |
>>> nocreate |
54 |
>>> delaycompress |
55 |
>>> } |
56 |
>> |
57 |
>> The latest logrotate update wanted to change the above line from su root |
58 |
>> portage to su portage portage ... |
59 |
>> |
60 |
>> Should I be changing the ownership of /var/log/portage and /var/log/portage |
61 |
>> elog? |
62 |
> |
63 |
> Unless portage now drops privileges from root:portage to portage:portage |
64 |
> for writing logs, no one except root should be allowed to write in |
65 |
> /var/log/portage. So, from my point of view, the answer is no. |
66 |
> |
67 |
> It seems so: |
68 |
> https://bugs.gentoo.org/show_bug.cgi?id=374287 |
69 |
> https://bugs.gentoo.org/show_bug.cgi?id=378451 |
70 |
> |
71 |
> This version of portage has just been stabilized this week. |
72 |
> |
73 |
> Regards, |
74 |
> Florian Philipp |
75 |
> |
76 |
|
77 |
Argh, sorry. I just saw that I forgot to delete the first paragraph |
78 |
after looking at portage's changelog. The answer is yes, not no. ;) |