Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge r1511033, r1528032, r1608686, r1608694, r1608703, r1838271, r1899784, r1916312, r1916344 from trunk #515

Open
wants to merge 9 commits into
base: 2.4.x
Choose a base branch
from

Conversation

rpluem
Copy link
Contributor

@rpluem rpluem commented Feb 10, 2025

Merge r1511033, r1528032, r1608686, r1608694, r1608703, r1899784, r1838271, r1916312, r1916344 from trunk

pquerna and others added 9 commits February 10, 2025 12:30
  autoconf warnings; define HAVE_SYSTEMD rather than using CPPFLAGS.

* server/listen.c: Use HAVE_SYSTEMD for systemd #define.

* modules/arch/unix/config5.m4: Update systemd headers check.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1528032 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit f6f568d)
activation, fix addrlen in getsockname() call.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1608686 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit 3d6f0d2)
…ds(),

drop the support for "Listen systemd" and use standard Listen syntax instead.

This allows using the same configuration file with or without socket activation
and allows setting protocol when using socket activation.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1608703 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit 4eff9ee)
Until this change httpd was linking libsystemd to the main httpd binary. If you want to run lightweight version of httpd in container, sometimes you just want to install
httpd binary with as little dependencies as possible to make container small in size and do not pull uncencessary dependencies and libraries.

This change will move all systemd library calls from listen.c to mod_systemd module and remove systemd linking from the main httpd bin.
Fixed mixed declaration and wrongly declared variable.

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

Github: closes apache#312

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1899784 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit db0631e)
…ning.

ap_find_systemd_socket() and ap_systemd_listen_fds() are already declared in
"ap_listen.h", so just include them.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916312 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit e343347)
context at startup, since this may vary when httpd is started via
systemd vs being started directly.

* modules/arch/unix/mod_systemd.c (systemd_post_config):
  Do nothing for the pre-config iteration.
  Log the SELinux context if available.

* modules/arch/unix/config5.m4: Detect libselinux.

Have at least one CI job build mod_systemd.

Github: closes apache#422

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916344 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit 9b17700)
Remove some dead code. Updating 'last' is pointless here.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1838271 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit e9d215e)
@rpluem rpluem changed the title Merge r1511033, r1528032, r1608686, r1608694, r1608703, r1899784, r1916312, r1916344 from trunk Merge r1511033, r1528032, r1608686, r1608694, r1608703, r1838271, r1899784, r1916312, r1916344 from trunk Feb 10, 2025
@notroj
Copy link
Collaborator

notroj commented Feb 14, 2025

Thank you very much indeed for doing this @rpluem !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants