Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91791 - mod-mono-server and xsp share the same files but run on different users with different permissions
Summary: mod-mono-server and xsp share the same files but run on different users with ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-07 04:55 UTC by Tadas Dailyda
Modified: 2006-10-27 08:10 UTC (History)
1 user (show)

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


Attachments
/etc/init.d/xsp patch to make it start (xsp.patch,599 bytes, patch)
2006-06-02 17:44 UTC, Sérgio Luís
Details | Diff
/etc/init.d/mod-mono-server patch to make it start (mod-mono-server.patch,328 bytes, patch)
2006-06-02 17:44 UTC, Sérgio Luís
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tadas Dailyda 2005-05-07 04:55:48 UTC
I just run XSP with /etc/init.d/xsp start, xsp runs with aspnet user and therefore creates /tmp/.wapi with owner being aspnet.
Then if i stop XSP and start mod-mono-server (either with /etc/init.d/mod-mono-server start or automatically by apache module mod_mono), mod-mono-server can not access /tmp/.wapi because mod-mono-server runs with apache user and does not have permission to access /tmp/.wapi created by xsp.


Reproducible: Always
Steps to Reproduce:
1./etc/init.d/xsp start
2./etc/init.d/xsp stop
3./etc/init.d/mod-mono-server start

Actual Results:  
mod-mono-server doesn't start at all

Expected Results:  
mod-mono-server should be able to access /tmp/.wapi and should start normally.

I am running mono-1.1.7, xsp-1.0.8 and mod_mono-1.0.8-r1.
Applied patch from bug 70943 to have /etc/init.d/mod-mono-server installed
(http://bugs.gentoo.org/attachment.cgi?id=53686&action=view).
See also http://bugs.gentoo.org/show_bug.cgi?id=70943#c8.
Comment 1 Sérgio Luís 2006-06-02 17:44:11 UTC
Created attachment 88221 [details, diff]
/etc/init.d/xsp patch to make it start
Comment 2 Sérgio Luís 2006-06-02 17:44:46 UTC
Created attachment 88222 [details, diff]
/etc/init.d/mod-mono-server patch to make it start
Comment 3 Sérgio Luís 2006-06-02 17:48:03 UTC
Here's a couple of patches for /etc/init.d/xsp and /etc/init.d/mod-mono-server

it fixes this little conflict and also closes bug #92338
Comment 4 Lance Albertson (RETIRED) gentoo-dev 2006-06-04 20:51:57 UTC
Is it the fact that the file exists after the init script stops the process? I'd rather force remove the file than chmod it every time. To me that almost creates a minor security risk.
Comment 5 Sérgio Luís 2006-06-16 17:20:01 UTC
i don't know the details about what's in .wapi...

but it works if you rm -rf it every time :)
Comment 6 Jurek Bartuszek (RETIRED) gentoo-dev 2006-10-27 08:10:42 UTC
xsp and mod-mono-server now both run using aspnet user rather than apache user. Thanks