Le samedi 4 mai 2024, 12:40:25 UTC Andreas Beckmann a écrit :
> On 04/05/2024 13.02, Andreas Beckmann wrote:
> >> I have patched sendmail in order to enable O RejectNUL=True directive,
> >> but I do not achieved the fact to enable it by default.
> 
> >> Andreas could you get a glimpse at how to render  RejectNUL a default ?
> 
> Second attempt. Completely untested. This should work for both fresh 
> installations and upgrades (as long as *.cf gets regenerated).
> 
> Could you try that? And especially that the opt-out instructions are 
> working?
> 
> Short explanation of the changes:
> - Patch upstream proto.m4 to unconditionally emit 'O RejectNUL' with a
>    default of 'false'. As long as confREJECT_NUL is not defined (also the
>    default), this will be commented, so safe if built without
>    _FFR_REJECT_NUL_BYTE
> - In debian.m4 define confREJECT_NUL to 'true' if sendmail was built
>    with _FFR_REJECT_NUL_BYTE, so it is enabled by default on Debian
> - If sendmail.mc undefines confREJECT_NUL (or defines it to 'false'),
>    RejectNUL will be disabled again.
> 
> If that works on sid, it should be trivially backportable to 
> (old)*stable. There should be NEWS about that change.

Test validated and pushed to git.

Lack only the NEWS entry.

Due to the complexity of this issue, as an outsider due you have an idea how to 
explain to a simple user.

Bastien
> 
> Andreas
> 

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to