1
0
mirror of https://github.com/apache/httpd.git synced 2026-10-23 22:49:01 +03:00

33754 Commits

Author SHA1 Message Date
Eric Covener
736bb65740 release 2.4.68 from voted 2.4.68-rc1
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/tags/2.4.68@1935141 13f79535-47bb-0310-9956-ffa450edef68
2.4.68
2026-06-08 12:04:29 +00:00
Eric Covener
a8846a542e Post 2.4.68-rc1 tag updates
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/tags/2.4.68-rc1-candidate@1935021 13f79535-47bb-0310-9956-ffa450edef68
2.4.68-rc1-candidate
2026-06-05 12:03:44 +00:00
Eric Covener
d9064bdf4f Tag branches/2.4.x@1935018 as 2.4.68-rc1
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/tags/2.4.68-rc1-candidate@1935019 13f79535-47bb-0310-9956-ffa450edef68
2026-06-05 12:01:37 +00:00
Eric Covener
f63f26aff6 Merge r1935016 from trunk:
restrict per-dir file funcs centrally

Reviewed By: covener, jorton, jfclere


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1935017 13f79535-47bb-0310-9956-ffa450edef68
2026-06-05 10:28:53 +00:00
Eric Covener
7d9f3cfb10 Merge r1935014 from trunk:
ap_regname: restrict to reasonable captures

Reviewed By: covener, gbechis, jfclere



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1935015 13f79535-47bb-0310-9956-ffa450edef68
2026-06-05 10:26:23 +00:00
Eric Covener
56bfb12843 Merge r1935009 from trunk:
dav_fs_get_resource: disallow DAV_FS_STATE_DIR


Submitted By: jorton
Reviewed By: jorton, covener, gbechis


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1935013 13f79535-47bb-0310-9956-ffa450edef68
2026-06-05 10:13:46 +00:00
Eric Covener
403269396d Merge r1935007 from trunk:
ap_proxy_cookie_revers: fix dup path/domain


Reviewed By: covener, jailletc36, jfclere


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1935008 13f79535-47bb-0310-9956-ffa450edef68
2026-06-05 10:07:34 +00:00
Eric Covener
6ff9dc2fdb Merge r1935005 from trunk:
merge_response_headers: fix lang iteration

reviewed by: covener, jfclere, jorton


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1935006 13f79535-47bb-0310-9956-ffa450edef68
2026-06-05 10:05:36 +00:00
Eric Covener
414de374a0 Merge r1935003 from trunk:
fix iteration

Reviewed By:covener, jorton, jfclere, jailletc36


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1935004 13f79535-47bb-0310-9956-ffa450edef68
2026-06-05 10:01:52 +00:00
Joe Orton
04641bce75 Merge r1934981 from trunk:
* modules/proxy/mod_proxy_ftp.c (proxy_ftp_dir_filter): Use
  ap_os_escape_path() with ap_escape_html() instead of
  ap_escape_uri() for href attributes in generated directory
  listing links.

Reviewed by: jorton, covener, jfclere


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934982 13f79535-47bb-0310-9956-ffa450edef68
2026-06-04 15:48:59 +00:00
Rich Bowen
759eb62f2a docs: Rewrite AllowOverride Options= warning
The existing note about implicit disabling of Options was difficult
to parse. Rewrite as a type="warning" note with:
- Clear statement that the restriction controls enabling, not disabling
- Explanation of absolute vs relative (+/-) Options syntax
- Concrete example showing how inherited options get implicitly disabled

BZ#70099


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934980 13f79535-47bb-0310-9956-ffa450edef68
2026-06-04 15:23:59 +00:00
Joe Orton
d62fc37528 Merge r1934975 from trunk:
mod_proxy_html: Simplify to use the ap_varbuf API.

* modules/filters/mod_proxy_html.c: Include util_varbuf.h.
  (saxctxt): Replace buf/offset/avail members with struct ap_varbuf vb.
  (DEFAULT_BUFSZ): New macro.
  (normalise): Take struct ap_varbuf * parameter instead of char *.
  (preserve, pappend): Remove functions, replaced by ap_varbuf_grow
  and ap_varbuf_strmemcat respectively.
  (dump_content): Use ap_varbuf for regex substitutions via
  ap_varbuf_regsub, avoiding manual buffer resizing with
  preserve/memmove/memcpy.  Use a temporary ap_varbuf for building
  regex replacement results.
  (pcharacters, pcomment): Use ap_varbuf_strmemcat and ap_varbuf_strcat
  in place of pappend.
  (pendElement): Check vb.strlen instead of offset.
  (pstartElement): Use ap_varbuf for attribute URL rewriting with the
  same ap_varbuf_regsub approach.  Use a temporary ap_varbuf for
  regex replacements.
  (proxy_html_filter): Initialize the ap_varbuf with a clamped bufsz.
  (proxy_html_merge): Use DEFAULT_BUFSZ macro.

Assisted-by: Claude Opus 4.6 (claude-opus-4-6)
Reviewed by: covener, jfclere, jorton


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934977 13f79535-47bb-0310-9956-ffa450edef68
2026-06-04 11:22:27 +00:00
Joe Orton
7bfe9266c2 Merged.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934974 13f79535-47bb-0310-9956-ffa450edef68
2026-06-04 08:50:55 +00:00
Joe Orton
83d565fbb5 Merge r1933586, r1916058, r1916068, r1933631, r1929891 from trunk:
Fix OpenSSL 4.0 compatibility and test that in CI.

CI: Update to test OpenSSL 4.0.0 explicitly.
CI: No longer disable deprecated-declaration warnings for OpenSSL 3.4 -Werror build.

* modules/ssl/ssl_engine_kernel.c (ssl_hook_UserCheck): Change name to
  const X509_NAME *.
  (ssl_callback_proxy_cert): Change ca_name, issuer, and ca_issuer to
  const X509_NAME *.

* modules/ssl/ssl_engine_log.c (ssl_log_cert_error): Change cert
  parameter to const X509 *. Use X509_get0_serialNumber,
  X509_get0_notBefore, and X509_get0_notAfter instead of non-const
  variants.
  (ssl_log_xerror, ssl_log_cxerror, ssl_log_rxerror): Change cert
  parameter to const X509 *.

* modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_cert_dn): Change
  xsname parameter to const X509_NAME *.
  (ssl_var_lookup_ssl_cert_dn_oneline): Change xsname parameter to
  const X509_NAME *.
  (ssl_var_lookup_ssl_cert): Change xsname to const X509_NAME *.
  (ssl_var_lookup_ssl_cert_rfc4523_cea): Change issuer to const
  X509_NAME *.

* modules/ssl/ssl_private.h (ssl_log_xerror, ssl_log_cxerror,
  ssl_log_rxerror): Update declarations to use const X509 *.

* modules/ssl/ssl_util_ssl.c (modssl_X509_NAME_to_string): Change dn
  parameter to const X509_NAME *.
  (getIDs): Change subj to const X509_NAME *.

* modules/ssl/ssl_util_ssl.h (modssl_X509_NAME_to_string): Update
  declaration to use const X509_NAME *.

* support/ab.c (ssl_print_cert_info): Change dn to const X509_NAME *.

mod_ssl: use ASN1_STRING accessor API in dump_extn_value:

* modules/ssl/ssl_engine_vars.c (dump_extn_value): Use
  ASN1_STRING_get0_data() and ASN1_STRING_length() rather than
  directly dereferencing the ASN1_OCTET_STRING structure, which is
  opaque in OpenSSL 4.0.
* modules/ssl/ssl_private.h: Add compat macros for
  ASN1_STRING_get0_data and ASN1_STRING_length for pre-1.1 API.

mod_ssl: constify ASN1_TIME pointers, use X509_get0_not{Before,After}:

* modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_cert_valid,
  ssl_var_lookup_ssl_cert_remain): Constify ASN1_TIME * parameter.
  (ssl_var_lookup_ssl_cert): Use X509_get0_notBefore() and
  X509_get0_notAfter() which return const pointers.
  (ssl_var_lookup_ssl_cert_remain): Use ASN1_TIME_check() directly
  rather than INVALID_ASN1_TIME macro which dereferences the
  ASN1_TIME structure.
  (dump_extn_value): Constify ASN1_OCTET_STRING * parameter.
* modules/ssl/ssl_private.h: Add compat macros for
  X509_get0_before and X509_get0_after for pre-1.1 API.

mod_ssl: constify X509_NAME_ENTRY and X509_EXTENSION pointers:

* modules/ssl/ssl_engine_vars.c (ssl_var_lookup_ssl_cert_dn,
  extract_dn): Constify X509_NAME_ENTRY * variables, constify
  X509_NAME * parameter of extract_dn, drop unnecessary casts
  on X509_NAME_ENTRY_get_object() calls.
  (ssl_ext_list): Use MODSSL_X509_EXT_CONST for X509_EXTENSION *
  since X509_EXTENSION accessors are only constified in OpenSSL 4.
* modules/ssl/ssl_util_ssl.c, modules/ssl/ssl_util_ssl.h
  (modssl_X509_NAME_ENTRY_to_string): Constify X509_NAME_ENTRY *
  parameter.
* modules/ssl/ssl_private.h: Add MODSSL_X509_EXT_CONST, defined
  as const for OpenSSL 4+ and empty otherwise.

* modules/ssl/ssl_util_ssl.c (asn1_string_convert): Constify
  ASN1_STRING * argument.
* modules/ssl/ssl_engine_ocsp.c (extract_responder_uri): Use
  modssl_ASN1_STRING_convert instead of directly accessing ASN1_STRING
  data pointer.

* modules/ssl/ssl_util_ssl.c (modssl_ASN1_STRING_convert): Rename from
  asn1_string_convert and export function.
  (asn1_string_to_utf8): Update to use modssl_ASN1_STRING_convert.
  (modssl_X509_NAME_ENTRY_to_string): Update to use
  modssl_ASN1_STRING_convert.

* modules/ssl/ssl_util_ssl.h (modssl_ASN1_STRING_convert): Declare new
  function.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

CI: Add OpenSSL 3.1 builds, including a no-engine build.
(attempt to use 3.2 failed, unsure why)
- add OpenSSL build binaries to $PATH 

CI: add OpenSSL 3.2, test OpenSSL 3.x using Apache::Test
trunk to pick up r1916067.

CI: The OpenSSL no-engine config option is redundant as of 4.0, remove.

CI: Try to fix ab failures during OpenSSL ech job, set RPATH via LDFLAGS

CI: For OpenSSL branch builds, always build a fresh version of the
OpenSSL branch and cache the commit hash to allow checking for freshness.
Also clone with --depth=1 to save time+bandwidth.

Reviewed by: jorton, covener (skimmed+CI results), rpluem
Github: closes #642


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934973 13f79535-47bb-0310-9956-ffa450edef68
2026-06-04 08:50:44 +00:00
Joe Orton
785f2b2c56 Votes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934972 13f79535-47bb-0310-9956-ffa450edef68
2026-06-04 08:47:53 +00:00
Joe Orton
cb1f79c0ce Merge r1934970 from trunk:
* modules/filters/mod_xml2enc.c (fix_skipto): Fix accounting.

Reviewed by: covener, jfclere, gbechis


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934971 13f79535-47bb-0310-9956-ffa450edef68
2026-06-04 08:47:19 +00:00
Joe Orton
2cf9b3f393 Merge r1934932 from trunk:
* modules/ldap/util_ldap.c (uldap_connection_find): Fix inheritance in
  per-dir context.

Reviewed by: jorton, covener, jfclere


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934935 13f79535-47bb-0310-9956-ffa450edef68
2026-06-03 17:09:40 +00:00
Joe Orton
f8ff26ab02 Merge r1933910, r1934871, r1934917, r1934873 from trunk: [CTR for non-Unix build + CI changes]
CMake: update min version required

GitHub: closes #640
Submitted by: Jeff McKenna <jmckenna gatewaygeomatics.com>

Fix Windows GHA build.

* .github/workflows/windows.yml
  (): Use Enter-VsDevShell to find VS installation and save
   environment variables to GITHUB_ENV.

CI: Update used actions to use newer Node.js than 20
CI: Update upload-artifact action, drop unnecessary Ubuntu 22.04 fix
CI: Drop 'shell: cmd', use PowerShell for the Windows workflow
CI: Print used CMake version for Windows workflow

Submitted by: Vladimír Chlup <vchlup ibm.com>
Github: closes #660

* .github/workflows/windows.yml: Use checkout@v6.

Submitted by: ivan
Github: closes #663


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934934 13f79535-47bb-0310-9956-ffa450edef68
2026-06-03 16:47:03 +00:00
Lucien Gentis
0f35e2dc1d fr doc XML files updates.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934931 13f79535-47bb-0310-9956-ffa450edef68
2026-06-03 15:47:17 +00:00
Ruediger Pluem
88817b58d3 * Vote [skip ci]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934928 13f79535-47bb-0310-9956-ffa450edef68
2026-06-03 14:00:20 +00:00
Rainer Jung
9d57f383a8 Move to right section; not my day...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934926 13f79535-47bb-0310-9956-ffa450edef68
2026-06-03 13:28:19 +00:00
Eric Covener
72d36de7e1 vote (passing glance)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934925 13f79535-47bb-0310-9956-ffa450edef68
2026-06-03 13:27:08 +00:00
Rainer Jung
270c5cc938 Oups
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934922 13f79535-47bb-0310-9956-ffa450edef68
2026-06-03 11:28:21 +00:00
Rainer Jung
8a694750fc Propose small backports
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934921 13f79535-47bb-0310-9956-ffa450edef68
2026-06-03 11:27:17 +00:00
Joe Orton
32b7e2e664 Merge r1934918 from trunk:
* modules/ssl/ssl_util_ocsp.c (send_request): Increase wbuf with the
  len read by apr_socket_send

Submitted by: gbechis
Github: closes #603
Reviewed by: covener, jorton, jfclere


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934919 13f79535-47bb-0310-9956-ffa450edef68
2026-06-03 10:44:38 +00:00
Jim Jagielski
bc1f00a61f Propose a backport fixing a h2 test bug
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934903 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 17:26:27 +00:00
Eric Covener
70e16a8e95 backport, update-changes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934902 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 17:15:34 +00:00
Eric Covener
8c83052203 Merge r1934210 from trunk:
mod_ssl: Set auth type to \"ClientCert\" after authentication

When client certificate authentication has been performed r->ap_auth_type was
never populated and env AUTH_TYPE was empty.
We now set auth type to \"ClientCert\".

PR: 45058
Submitted by: Michael Osipov <michaelo@apache.org>
Reviewed by:  michaelo, jorton, rpluem
Github: closes #645



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934901 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 17:14:41 +00:00
Eric Covener
bd7aecd4e7 Merge r1933908 from trunk:
mod_ssl: Expose serialNumber (2.5.4.5) as standard env var from certificate DN

serialNumber (2.5.4.5) is a standard LDAP attribute embedded in the subject's
and/or issuer's DN, extract it by standard means from the DN and expose
via StdEnvVars.

PR: 35154
Co-authored-by: Michael Osipov <michaelo@apache.org>
Submitted by: Benjamin Demarteau <benjamin.demarteau@liege.be>
Reviewed By:  michaelo, jorton, rpluem
Github: closes #644



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934900 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 17:13:55 +00:00
Eric Covener
67003f03e7 Merge r1934852 from trunk:
expr parse fail should hide conditional content

these are neither true or false, the enclosing content should not
be printed


Submitted by: covener
Reviewed by: covener, jorton, rpluem

Github: closes #658


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934899 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 17:11:08 +00:00
Eric Covener
d3f7a1f7ae make update-changes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934898 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 17:10:16 +00:00
Ruediger Pluem
76e1fbb771 * Vote and promote [skip ci]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934897 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 16:40:41 +00:00
Ruediger Pluem
6ea347477e r1934210 was not backported yet
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934895 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 16:16:47 +00:00
Ruediger Pluem
8bf92c3cb7 r1933908 was not backported yet
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934894 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 16:08:08 +00:00
Lucien Gentis
8ff2fbeff7 fr doc XML files updates.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934893 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 15:55:24 +00:00
Joe Orton
9108512a41 Flushed queue, votes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934886 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 14:16:08 +00:00
Joe Orton
dc5bf17873 Merge r1934594, r1934597 from trunk:
memchr() takes a char * as a first parameter, and 'buf' is a const char *.

This breaks build process at least with gcc 16.1.1 and maintainer-mode enabled.

Without maintainer-mode, only a warning is generated.

strchr() takes a char * as a first parameter, and in the cases a const char * is passed.

This breaks build process at least with gcc 16.1.1 and maintainer-mode enabled.

Without maintainer-mode, only a warning is generated.

Submitted by: jailletc36
Reviewed by: jailletc36, jim, jorton


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934885 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 13:55:21 +00:00
Joe Orton
4b51444e86 Merge r1931452, r1931453 from trunk:
core: Add millisecond support to ErrorLogFormat time specifiers

%{m} prints the timestamp in millisecond-resolution.

* include/util_time.h:
  Define new AP_CTIME_OPTION_MSEC option for printing time in milliseconds
  format.

* server/util_time.c (ap_recent_ctime_ex):
  Handle AP_CTIME_OPTION_MSEC to print time in a millisecond format.

* server/log.c (log_ctime):
  Recognize the m time option in both fast-path and composite %{...}t formats.

Submitted by: Luboš Uhliarik <luhliari redhat.com>

* server/log.c (log_ctime): Fix syntax error in r1931452
  (added by me when tweaking whitespace, not from the PR author).

Reviewed by: jorton, covener, jim
Github: closes #599


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934884 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 13:54:17 +00:00
Eric Covener
dbf1cc4dd6 Merge r1931949, r1934628, r1934678, r1934743 from trunk:
*) mod_http2: update to version 2.0.39
     Remove streams own memory allocator after reports of memory problems
     with third party modules.



  *) mod_http2: update to version 2.0.40
     Fix error handling on upload requests when server runs out of file
     handles that left beam bucket callbacks in place, potentially using
     no longer valid references. Only applies on platforms with pipes
     and file descriptor limits not healthy for a network server.



  *) mod_http2: update to version 2.0.41
     Fix cookie header accounting against LimitRequestFields.


  *) mod_http2: update to version 2.0.42
     Fix excessive file description use for non-TLS frontend connections when
     sending files. Fixes <https://github.com/icing/mod_h2/issues/325>

Submitted By: icing
Reviewed By: various (icing, steffenal, covener jim)



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934882 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 13:20:28 +00:00
Rich Bowen
023b3170d8 Fix RedirectMatch regex in ACME exemption recipe (bug 70084)
The negative lookahead (?!...) is zero-width and non-capturing, so
the original pattern matched only the leading slash and \$1 was
undefined. Add a capturing group (.*)$ after the lookahead so that
\$1 contains the remainder of the URL-path.

Same as trunk r1934878.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934879 13f79535-47bb-0310-9956-ffa450edef68
2026-06-02 12:56:53 +00:00
Michael Osipov
52a18f1db1 backport proposal for r1934210
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934858 13f79535-47bb-0310-9956-ffa450edef68
2026-06-01 19:23:44 +00:00
Michael Osipov
92a0e5219f backport proposal for r1933908
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934857 13f79535-47bb-0310-9956-ffa450edef68
2026-06-01 19:21:13 +00:00
Eric Covener
99c1e108cc replace boilerplate
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934856 13f79535-47bb-0310-9956-ffa450edef68
2026-06-01 18:14:56 +00:00
Eric Covener
e4d9508328 propose mod_include parse fix
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934855 13f79535-47bb-0310-9956-ffa450edef68
2026-06-01 18:09:52 +00:00
Lucien Gentis
6ffc8d0fdb fr doc XML files updates.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934841 13f79535-47bb-0310-9956-ffa450edef68
2026-06-01 15:50:36 +00:00
Joe Orton
894bef3d42 Merge r1926172 from trunk:
* modules/dav/fs/repos.c (dav_fs_remove_resource):
  Return a 404 if apr_file_remove() fails with an ENOENT error,
  likely due to a race with another DELETE.

PR: 60746
Submitted by: jorton
Reviewed by: jorton, rpluem, covener
Github: closes #583


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934836 13f79535-47bb-0310-9956-ffa450edef68
2026-06-01 13:03:36 +00:00
Joe Orton
25b23fa147 Merge r1617196, r1617201, r1618778, r1897269, r1927804 from trunk:
unixd_drop_privileges and ap_unixd_setup_child are almost the same,
so let's remove the redundant code.


geteuid is always successful,
so remove errno reference.


Follow up r1617201:
Return EPERM if the uid is not root on chroot-ing.

Pointed out by trawick on
<CAKUrXK6EGmG1ZD4+UFZ05yznTe6twOU3n57YeO-Ney-_VV_dCQ@mail.gmail.com>


mod_unixd: Make CoreDumpDirectory work for FreeBSD 11+. PR 65819.

FreeBSD 11+ coredumping requires tracing enabled via procctl(PROC_TRACE_CTL).

Submitted by: David CARLIER <devnexen gmail.com>
Reviewed by: ylavic (by inspection)


* modules/arch/unix/mod_unixd.ci (ap_unixd_setup_child): 
  Do not test euid=0 before going chroot

Nowaday chroot need CAP_SYS_CHROOT capability in its user namespace, and could
work without root.

Will allow to use chroot with lesser permission.

Submitted by: Bastien Roucariès <rouca debian.org>
PR: 69767

Submitted by: takashi, ylavic, jorton
Reviewed by:  jorton, rpluem, covener
Github: closes #588


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934835 13f79535-47bb-0310-9956-ffa450edef68
2026-06-01 13:02:06 +00:00
Joe Orton
471c8adfb8 Vote/promote.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934834 13f79535-47bb-0310-9956-ffa450edef68
2026-06-01 12:55:40 +00:00
Jim Jagielski
fde4e5cfd3 Promote some backports
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934833 13f79535-47bb-0310-9956-ffa450edef68
2026-06-01 12:53:20 +00:00
Jim Jagielski
254c0e58fd These are OK as per testing on macOS26 and Ubuntu24
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934832 13f79535-47bb-0310-9956-ffa450edef68
2026-06-01 12:52:09 +00:00