You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2019/10/18 18:04:41 UTC

[Bug 7763] New: ssl tests must be run as root

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7763

            Bug ID: 7763
           Summary: ssl tests must be run as root
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Building & Packaging
          Assignee: dev@spamassassin.apache.org
          Reporter: frodo@morgul.net
  Target Milestone: Undefined

Created attachment 5678
  --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5678&action=edit
spamd_tests_use_unprivileged_port.diff

The tests in t/spamd_ssl.t and t/spamd_ssl_accept_fail.t run spamd with the
default port configuration, which uses a privileged port and must thus be run
as root. Aside from binding to port 783, there's nothing about those tests that
requires privileges. We should consider switching to an unprivileged port.
Either that or we should skip these tests when running as non-root, but that
seems unnecessary.

Proposed fix to trunk is attached. I'd apply something similar to the 3.4
branch as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 7763] ssl tests must be run as root

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7763

Henrik Krohns <ap...@hege.li> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |apache@hege.li
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Henrik Krohns <ap...@hege.li> ---
Uses now probably_unused_spamd_port() function.

Sending        spamassassin-3.4/t/spamd_ssl.t
Sending        spamassassin-3.4/t/spamd_ssl_accept_fail.t
Sending        trunk/t/spamd_ssl.t
Sending        trunk/t/spamd_ssl_accept_fail.t
Transmitting file data ....done
Committing transaction...
Committed revision 1876346.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 7763] ssl tests must be run as root

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7763

Kevin A. McGrail <km...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kmcgrail@apache.org

--- Comment #2 from Kevin A. McGrail <km...@apache.org> ---
Do you think we should rename probably_unused_spamd_port() since it's now used?

-- 
You are receiving this mail because:
You are the assignee for the bug.