[exim-dev] [Bug 2916] New: dsearch erroneously requires read…

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: admin
Data:  
Para: exim-dev
Asunto: [exim-dev] [Bug 2916] New: dsearch erroneously requires read permission
https://bugs.exim.org/show_bug.cgi?id=2916

            Bug ID: 2916
           Summary: dsearch erroneously requires read permission
           Product: Exim
           Version: N/A
          Hardware: All
                OS: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Lookups
          Assignee: unallocated@???
          Reporter: from-exim-bugzilla@???
                CC: exim-dev@???


Further to Exim-dev Digest, Vol 216, Issue 5

I normally set directory permissions to "drwx--x--x" or "drwx--x---"; scan/exec
access without read access, but this breaks the dsearch lookup.

The comment above dsearch_open says "We open the directory to test whether it
exists and whether it is searchable", but that's not actually true, because
"readable" and "searchable" are two different things.

The dsearch_open function calls exim_opendir and then fails because the
directory lacks 'r' permission, even though when it succeeds it immediately
closes the dir fd as unneeded.

I have prepared https://github.com/Exim/exim/pull/87 which addresses this, and
makes some related improvements. Suggestions and feedback would be much
appreciated.

--
You are receiving this mail because:
You are on the CC list for the bug.