<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>91791</bug_id>
          
          <creation_ts>2005-05-07 04:55 0000</creation_ts>
          <short_desc>mod-mono-server and xsp share the same files but run on different users with different permissions</short_desc>
          <delta_ts>2006-10-27 08:10:42 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tadas@dailyda.com</reporter>
          <assigned_to>dotnet@gentoo.org</assigned_to>
          <cc>ramereth@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>tadas@dailyda.com</who>
            <bug_when>2005-05-07 04:55:48 0000</bug_when>
            <thetext>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&apos;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&amp;action=view).
See also http://bugs.gentoo.org/show_bug.cgi?id=70943#c8.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ld.fifty@gmail.com</who>
            <bug_when>2006-06-02 17:44:11 0000</bug_when>
            <thetext>Created an attachment (id=88221)
/etc/init.d/xsp patch to make it start

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ld.fifty@gmail.com</who>
            <bug_when>2006-06-02 17:44:46 0000</bug_when>
            <thetext>Created an attachment (id=88222)
/etc/init.d/mod-mono-server patch to make it start

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ld.fifty@gmail.com</who>
            <bug_when>2006-06-02 17:48:03 0000</bug_when>
            <thetext>Here&apos;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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ramereth@gentoo.org</who>
            <bug_when>2006-06-04 20:51:57 0000</bug_when>
            <thetext>Is it the fact that the file exists after the init script stops the process? I&apos;d rather force remove the file than chmod it every time. To me that almost creates a minor security risk.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ld.fifty@gmail.com</who>
            <bug_when>2006-06-16 17:20:01 0000</bug_when>
            <thetext>i don&apos;t know the details about what&apos;s in .wapi...

but it works if you rm -rf it every time :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jurek@gentoo.org</who>
            <bug_when>2006-10-27 08:10:42 0000</bug_when>
            <thetext>xsp and mod-mono-server now both run using aspnet user rather than apache user. Thanks</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>88221</attachid>
            <date>2006-06-02 17:44 0000</date>
            <desc>/etc/init.d/xsp patch to make it start</desc>
            <filename>xsp.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHhzcAkyMDA2LTA2LTAzIDAxOjI1OjA2LjAwMDAwMDAwMCArMDEwMAorKysgeHNwX21vZGlm
aWVkCTIwMDYtMDYtMDMgMDA6NTA6MTguMDAwMDAwMDAwICswMTAwCkBAIC0xMCwxMyArMTAsMTYg
QEAKIAogc3RhcnQoKSB7CiAJZWJlZ2luICJTdGFydGluZyB4c3AiCisJaWYgWyAtZSAvdG1wLy53
YXBpIF07IHRoZW4KKwkJY2hvd24gYXNwbmV0OmFzcG5ldCAvdG1wLy53YXBpCisJZmkKIAogCXN0
YXJ0LXN0b3AtZGFlbW9uIC0tcXVpZXQgLS1zdGFydCBcCiAJCS0tYmFja2dyb3VuZCBcCiAJCS0t
bWFrZS1waWRmaWxlIFwKIAkJLS1waWRmaWxlIC92YXIvcnVuL2FzcG5ldC94c3AucGlkIFwKIAkJ
LS1jaHVpZCBhc3BuZXQgXAotCQktLWV4ZWMgL3Vzci9iaW4vbW9ubyAvdXNyL2xpYi9tb25vLzEu
MC94c3AuZXhlIC0tIC0tcm9vdCAke01vbm9TZXJ2ZXJSb290fSAtLXBvcnQgJHtNb25vU2VydmVy
UG9ydH0gLS1ub25zdG9wCisJCS0tZXhlYyAvdXNyL2Jpbi9tb25vIC91c3IvbGliL3hzcC8xLjAv
eHNwLmV4ZSAtLSAtLXJvb3QgJHtNb25vU2VydmVyUm9vdH0gLS1wb3J0ICR7TW9ub1NlcnZlclBv
cnR9IC0tbm9uc3RvcAogCWVlbmQgJD8KIH0KIAo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>88222</attachid>
            <date>2006-06-02 17:44 0000</date>
            <desc>/etc/init.d/mod-mono-server patch to make it start</desc>
            <filename>mod-mono-server.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG1vZC1tb25vLXNlcnZlcgkyMDA2LTA2LTAzIDAxOjI1OjA2LjAwMDAwMDAwMCArMDEwMAor
KysgbW9kLW1vbm8tc2VydmVyX21vZGlmaWVkCTIwMDYtMDYtMDMgMDE6MTI6MTMuMDAwMDAwMDAw
ICswMTAwCkBAIC00OSw2ICs0OSwxMSBAQAogCiAJZWJlZ2luICJTdGFydGluZyBtb2QtbW9uby1z
ZXJ2ZXIiCiAKKworCWlmIFsgLWUgL3RtcC8ud2FwaSBdOyB0aGVuCisJCWNob3duIGFwYWNoZTph
cGFjaGUgL3RtcC8ud2FwaQorCWZpCisKIAlzdGFydC1zdG9wLWRhZW1vbiAtLXF1aWV0IC0tc3Rh
cnQgXAogCQktLWJhY2tncm91bmQgXAogCQktLW1ha2UtcGlkZmlsZSBcCg==
</data>        

          </attachment>
    </bug>

</bugzilla>