Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101070 - mail-filter/razor-2.75 - razor-admin touches /etc/razor/razor-agent.conf illegally
Summary: mail-filter/razor-2.75 - razor-admin touches /etc/razor/razor-agent.conf ille...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-02 01:59 UTC by Ray Booysen
Modified: 2005-08-15 19:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Log of attempt at Emerging Amavisd-new-2.3.2 (amavisd-new.log,2.14 KB, text/plain)
2005-08-02 05:30 UTC, Ray Booysen
Details
razor.strace.log (razor.strace.log,322.12 KB, text/plain)
2005-08-02 16:18 UTC, Andrej Kacian (RETIRED)
Details
razor.strace.log (razor-strace.log,233.74 KB, text/plain)
2005-08-03 00:38 UTC, Ray Booysen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ray Booysen 2005-08-02 01:59:09 UTC
Emerging amavisd-new-2.3.2 causes the following problem.  razor-agent.conf if
definitely writable.

>>> Completed installing amavisd-new-2.3.2 into
/var/tmp/portage/amavisd-new-2.3.2/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-mail-filter_-_amavisd-new-2.3.2-6061.log"

open_wr:   /etc/razor/razor-agent.conf
--------------------------------------------------------------------------------


Reproducible: Always
Steps to Reproduce:
1. emerge amavisd-new
2.
3.

Actual Results:  
Emerge failed with above results

Expected Results:  
Emerged amavisd-new sucessfully.
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2005-08-02 05:04:14 UTC
Please post your installed version of mail-filter/razor, and a complete
amavisd-new emerge output.
Comment 2 Ray Booysen 2005-08-02 05:30:30 UTC
Created attachment 64931 [details]
Log of attempt at Emerging Amavisd-new-2.3.2
Comment 3 Ray Booysen 2005-08-02 05:31:02 UTC
Razor Version: 2.74

Thanks for the help! :)
Comment 4 Andrej Kacian (RETIRED) gentoo-dev 2005-08-02 05:45:55 UTC
Do you have razor set up in /etc/razor ? Strace of "razor-admin -create
-home=/whatever" shows that it is trying to open /etc/razor/razor-agent.conf at
certain points.
Comment 5 Ray Booysen 2005-08-02 05:49:55 UTC
This is correct.  razor-agent.conf is in /etc/razor
Comment 6 Andrej Kacian (RETIRED) gentoo-dev 2005-08-02 05:57:39 UTC
This looks like a bug in razor. CCing upstream contact - Jordan, can you comment
on this? Looks like razor-admin tries to write into /etc/razor/razor-agent.conf,
even if a different -home= was specified.
Comment 7 Jordan Ritter 2005-08-02 08:22:49 UTC
Acknowledged, reviewing.
Comment 8 Jordan Ritter 2005-08-02 08:34:43 UTC
I believe this has been fixed -- both the bug itself and perhaps a related sandbox violation in the ebuild 
(see the gentoo razor changelog: http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/mail-filter/
razor/ChangeLog).  

I reviewed the full strace output of ``razor-admin -create -home=/tmp/razor'' with v2.75 and could 
not reproduce this problem.  

I am unsure of why 2.75 is still masked.  The only bug I can find in the bugbase with ``razor'' as a 
keyword is this one.  Can someone please ping folks to unmask?
Comment 9 Andrej Kacian (RETIRED) gentoo-dev 2005-08-02 09:27:15 UTC
Ray, could you try upgrading to razor 2.75 ?

Jordan, 2.75 is not marked stable yet, because it hasn't passed the usual 30-day
unstable period in portage.
Comment 10 Ray Booysen 2005-08-02 09:35:42 UTC
Unfortunately same error as before. Installed razor-2.75 and same behaviour as
previously documented.
Comment 11 Ray Booysen 2005-08-02 09:40:23 UTC
OK, here is some more info.  If I move or delete the /etc/razor directory,
amavisd-new emerges perfectly without a problem.
Comment 12 Jordan Ritter 2005-08-02 15:55:14 UTC
Ray, would you be kind enough to attach an strace of your v2.75 attempt?  I tried it both with ``/etc/
razor'' pre-existing and without, and in neither case when ``-home=/tmp/razor'' could I find any 
instance of the agents stat()'ing or chdir()'ing or open()'ing anything in ``/etc/razor''.

My invocation was:  strace razor-admin -create -home=/tmp/razor > /tmp/razor-strace.log 2>&1
Comment 13 Andrej Kacian (RETIRED) gentoo-dev 2005-08-02 16:18:05 UTC
Created attachment 64958 [details]
razor.strace.log

I can provide such strace log too. The version used is 2.75.
Comment 14 Ray Booysen 2005-08-03 00:38:09 UTC
Created attachment 64971 [details]
razor.strace.log
Comment 15 Jordan Ritter 2005-08-03 21:09:21 UTC
Bug confirmed and fixed in CVS.  Will be in the forthcoming 2.76 release.  Thank
you for the report!
Comment 16 Ray Booysen 2005-08-04 01:03:26 UTC
Thanks!

Can I mark FIXED?
Comment 17 Andrej Kacian (RETIRED) gentoo-dev 2005-08-04 02:57:25 UTC
No, this bug should stay open until 2.76 comes out and respective ebuild is
added to portage.
Comment 18 Andrej Kacian (RETIRED) gentoo-dev 2005-08-15 19:22:58 UTC
Ok, this problem is gone for me after upgrading to recently released razor-2.77.
Ray, feel free to reopen this bug, if it still doesn't work for you.
Jordan, thanks. :)