[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Policy: Mail folder creation (Re: Debian mutt package)



On Mon, Dec 07, 1998 at 10:40:21PM +0100, Thomas Roessler wrote:
> >   30433  mutt: Mutt doesn't create the user's mail file as dictated by
> > policy manual
> 
> Frankly, I'm considering this requirement serious brain-damage in
> the policy manual.

Agreed.

> IMHO, MUAs should _never_ _ever_ remove the user's mail spool file,
> and the policy manual should forbid that behaviour instead of
> allowing it.

Agreed.

> The reason for this is simple: From a least-privilege point of view,
> the one and only privileged operation a MUA ever needs to perform is
> locking and unlocking the spool file.  This can nicely be put into
> an external program, as mutt demostrates.  Removing or creating the
> user's spool file is an additional and unnecessary privileged
> operation in a configuration like Debian's.  It's a security breach
> on systems with a mode 1777 mail spool.
> 
> Thus, I'd suggest the mail spool file is created by the useradd or
> similar programs upon account creation.  For robustness reasons,
> M_D_As such as procmail and deliver should be required to re-create
> it when it doesn't exist, and required MUA behaviour should be as I
> wrote above.
> 
> (Adding re-creation abilities to mutt would actually mean that we'd
> have to make mutt sgid mail again. This is not an option as we do
> have the privileged helper program for dotlocking[1].  If Debian
> insists of having mutt re-create the mail spool file, you'll have to
> create an external program and a shell wrapper to do this.)
> 
> tlr, upstream mutt maintainer.
> 
> [1] If liblockfile is doing dotlocking (I suppose so), using
>     mutt_dotlock for the privileged operations may be an interesting
>     option for Debian.

What about making the adduser script create spool files?


Reply to: