[Pkg-mailman-hackers] Bug#883464: mailman3-core: Install /var/log/mailman3 directory with permissions 2775, which triggers a logrotate error

Pierre-Elliott Bécue becue at crans.org
Mon Dec 4 12:56:02 UTC 2017


tags 883464 + upstream patch
thanks

Le lundi 04 décembre 2017 à 12:05:20+0100, Pierre-Elliott Bécue a écrit :
> Package: mailman3-core
> Version: 3.1.0-6
> Severity: normal
> Owner: Vincent Le Gallic <legallic at crans.org>
> 
> Bug submitted by Pierre-Elliott Bécue <becue at crans.org> for tracking
> purposes.
> 
> Vincent Le Gallic contacted me with a logrotate message telling that
> /var/log/mailman3 was set with wrong permissions (2775).
> 
> Tested on a minimal container, and confirmed.
> 
> I'll try to solve it in -7 release.
> 
> Bug owner set to him as he's the one who reported it to me.

This is a bug from upstream.

In mailman.utilities.filesystem, there is a makedirs method that is called
on all directories mentioned in the configuration file, and sets as a
default the permissions to 2775. This chmod is done even when the
directories already exist.

I'm pretty sure that 0755 as a default would be perfect, and I'm also pretty
sure that this chmod shouldn't be done if the dir was already there. I
designed a basic quilt patch to change the default, and I'll think about a
way to patch properly this function.

I'll file a bug report upstream.

-- 
PEB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mailman-hackers/attachments/20171204/3ce0b998/attachment.sig>


More information about the Pkg-mailman-hackers mailing list