Page MenuHomeFreeBSD

www/apache24: Update to 2.4.34
ClosedPublic

Authored by joneum on Jul 16 2018, 9:56 PM.
Tags
None
Referenced Files
F80132973: D16294.diff
Thu, Mar 28, 8:42 AM
Unknown Object (File)
Feb 23 2024, 3:43 PM
Unknown Object (File)
Jan 31 2024, 10:32 AM
Unknown Object (File)
Jan 13 2024, 11:11 AM
Unknown Object (File)
Dec 22 2023, 10:32 PM
Unknown Object (File)
Dec 7 2023, 2:51 AM
Unknown Object (File)
Dec 1 2023, 6:07 AM
Unknown Object (File)
Dec 1 2023, 6:07 AM
Subscribers

Details

Summary

www/apache24: Security update to 2.4.34

  • fixes vulns in mod_http2 and mod_md
  • include SSL_* options in alphabetic ordering
  • Remove unneeded SSL_CFLAGS and _LDFLAGS
  • Remove WITH_HTTP_PORT and WITH_SSL_PORT
  • Remove trailing whitespace
  • Fix build with HTTP2 but without SSL [1]

PR: 229802, 227944 [1]
With hat: apache
Approved by: (apache)
MFH: 2018Q3
Security: 8b1a50ab-8a8e-11e8-add2-b499baebfeaf
Differential Review: https://reviews.freebsd.org/D16294

Test Plan

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

brnrd requested changes to this revision.Jul 17 2018, 8:00 AM

Nice improvements!

www/apache24/Makefile
70 ↗(On Diff #45394)

As we don't have

HTTP2_IMPLIES= SSL

I don't think this is OK.
You can build Apache with HTTP2 but without SSL (even though I wouldn't know why someone would).
Looks to me like mod_h2 does require libcrypto: https://github.com/icing/mod_h2/blob/master/configure.ac#L105 but not 100% sure.

77 ↗(On Diff #45394)

What's going on with indentation here? It aligns OK for me already.

94 ↗(On Diff #45394)

Any reason not to keep the SSL_* entries not in alphabetical order? Think that's mostly historical.

111 ↗(On Diff #45394)

If we remove these, we can also remove lines 37 and 38

37 WITH_HTTP_PORT?=        80
38 WITH_SSL_PORT?=         443

People should do that with Listen and <VirtualHost> directives anyway.
Do our default config files specify Listen correctly?

This revision now requires changes to proceed.Jul 17 2018, 8:00 AM

I don't think this warrants a MFH, there are no security fixes in this release.

www/apache24/Makefile
111 ↗(On Diff #45394)

Just checked, the config files we ship have
etc/httpd.conf

52 Listen 80

etc/extra/httpd-ssl.conf

36 Listen 443

so WITH_HTTP_PORT and WITH_SSL_PORT are indeed redundant.

Updated patch in bug #229802

www/apache24/Makefile
70 ↗(On Diff #45394)

So yes, this is OK, and exactly what my point is/was. It should be added.
Not sure about whitespace here.

I don't think this warrants a MFH, there are no security fixes in this release.

The vulnerability fixes were missing from the ChangeLog as per https://lists.apache.org/thread.html/b57f9c60d015b88301f916a242e0c40d22ce7da381885d1ede7e0de9@%3Cdev.httpd.apache.org%3E

Documented in vuxml http://www.vuxml.org/freebsd/8b1a50ab-8a8e-11e8-add2-b499baebfeaf.html

I've done some more cosmetic fixing / portlint petting, the modules/md/md_crypt.c fix has landed upstream

mat added inline comments.
www/apache24/Makefile
72 ↗(On Diff #45394)

Then HTTP2_IMPLIES=SSL, and this, and the added --with-ssl above, can be removed.

80–85 ↗(On Diff #45394)
MD_IMPLIES= SSL

and remove the USES=ssl and --with-ssl.

www/apache24/Makefile
72 ↗(On Diff #45394)

It is not a requirement to build the mod_ssl module (which is what the SSL option in Apache 2.4 does) if you want the mod_http2 module. See also earlier comment.

80–85 ↗(On Diff #45394)

As before. The SSL option toggles the mod_ssl module. Almost all options in the port are prefixed with mod_ to enable them during build.
And it is silly to not have mod_ssl module when you use mod_md yet technically possible.

www/apache24/files/patch-modules_md_md__crypt.c
7 ↗(On Diff #45549)

are you sure this is the right PR number? https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=62548

Looking good to commit!

This revision is now accepted and ready to land.Jul 20 2018, 2:15 PM
This revision was automatically updated to reflect the committed changes.