RE: [Exim] Exim 4: Opinion wanted on file checking

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: John Horne
Cc: exim-users
Asunto: RE: [Exim] Exim 4: Opinion wanted on file checking
Yesterday, 14 Mar 2001, I wrote:

> Or do you mean you use $local_part as well as +? (i.e. "If this file
> cannot be seen by this user, skip this director"). Hmm. That does seem
> to be potentially useful.


After some thought, I think I've come up with a good enough way to
preserve this functionality, without having to fork another process just
to do the test.

Because the test is NOT being used by a root process as a prelude to
actually doing something with the file - it's merely trying to find
information about the file - I think we can get away with a little bit
of code that stat()'s its way through the enclosing directories to the
file itself, checking that the given user has read access.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.