<?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>136445</bug_id>
          
          <creation_ts>2006-06-11 10:41 0000</creation_ts>
          <short_desc>mail-filter/qmail-scanner - invalid RESTRICT=&quot;usersandbox&quot;</short_desc>
          <delta_ts>2007-12-13 22:54:32 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>2006.0</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>jakub@gentoo.org</reporter>
          <assigned_to>qmail-bugs@gentoo.org</assigned_to>
          <cc>anf@ltmd.org</cc>
    
    <cc>dev-portage@gentoo.org</cc>
    
    <cc>patrick@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-06-11 10:41:16 0000</bug_when>
            <thetext>RESTRICT=&quot;usersandbox&quot; is not honored by portage... not really sure what you are after here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2006-06-11 13:37:13 0000</bug_when>
            <thetext>IIRC, the packages fail to compile if you have FEATURES=usersandbox.
userpriv on it&apos;s own is fine, and sandbox on it&apos;s own is fine.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-06-11 13:47:36 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; IIRC, the packages fail to compile if you have FEATURES=usersandbox.
&gt; userpriv on it&apos;s own is fine, and sandbox on it&apos;s own is fine.

Well, it doesn&apos;t do anything useful, portage ignores it. :) According to changelog, this has been added for Bug 93447 in qmail-scanner. RESTRICT=&quot;userpriv&quot; is the effective restrict there, that usersandbox thing is just redundant and silently ignored.

As for qmail, this has been added for Bug 99390. It seems kinda redundant to me, the bug was about tests, those are restricted, so there&apos;s no need for additional restrictions there, or does it fail w/ userpriv as well without tests enabled? 

Couldn&apos;t find anything useful wrt these restricts in changelog for netqmail.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hansmi@gentoo.org</who>
            <bug_when>2006-06-17 04:33:56 0000</bug_when>
            <thetext>Fixed in CVS, thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-06-19 15:21:45 0000</bug_when>
            <thetext>Still there in qmail-scanner ebuilds... ;)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-07-21 02:29:13 0000</bug_when>
            <thetext> 20 Jul 2006; Michael Sterrett &lt;mr_bones_@gentoo.org&gt;
  qmail-scanner-1.25-r1.ebuild, qmail-scanner-2.01.ebuild:
  usersandbox =&gt; sandbox since usersandbox isn&apos;t a valid RESTRICT
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2006-07-21 02:53:29 0000</bug_when>
            <thetext>Reopening this.
Usersandbox needs to become a valid RESTRICT.

qmail-scanner is a special case.
The &apos;configure&apos; script has always been heavily hacked by upstream, and has in the past done unsafe things - mainly around writing to the stuff used by an active install of qmail-scanner, and breaking the installed copy by doing so (and losing mail). 

With FEATURES=&apos;userpriv&apos; OR FEATURES=&apos;sandbox&apos;, it compiles and works fine (and the compile is safe).
FEATURES=&apos;userpriv sandbox&apos; is the same as FEATURES=&apos;userpriv&apos; (sandbox is not used).
With FEATURES=&apos;-sandbox&apos;, it compiles, but you&apos;re vulnerable to upstream stupidity.
With FEATURES=&apos;userpriv usersandbox&apos;, it fails to compile and work properly.

So specifically, we want to ONLY block usersandbox.

Mr_bones_: would you please revert your &quot;usersandbox =&gt; sandbox&quot; change ASAP to avoid qmail-scanner breaking existing systems.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-09-23 11:34:43 0000</bug_when>
            <thetext>*** Bug 148815 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>anf@ltmd.org</who>
            <bug_when>2007-06-14 11:47:25 0000</bug_when>
            <thetext>I remembered, that I&apos;ve workarounded this problem downgrading clamav, installed qmail-scanner and after that upgrading clamav. But with latest clamav versions you cannot reemerge mail-filter/qmail-scanner.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-12-13 22:54:32 0000</bug_when>
            <thetext># grep RESTRICT *.ebuild
qmail-scanner-1.25-r1.ebuild:RESTRICT=&quot;userpriv&quot;
qmail-scanner-2.01.ebuild:RESTRICT=&quot;userpriv&quot;

(In reply to comment #6)
&gt; Reopening this.
&gt; Usersandbox needs to become a valid RESTRICT.

Why? RESTRICT=&quot;usersandbox&quot; will yield you either effective FEATURES=&apos;userpriv sandbox&apos; (which translates to running as portage:portage without a sandbox) or effective FEATURES=&apos;sandbox&apos; (sandboxed with root privs). What&apos;s the exact expected benefit from making usersandbox a valid restrict I really fail to see, you already get FEATURES=&apos;sandbox&apos; with the current RESTRICT=&quot;userpriv&quot;.

Closing this as the RESTRICT is fixed.
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>