- Use two separate //go:generate directives (Ja4Tc for tc_capture.c, Ja4Ssl
for uprobe_ssl.c) to avoid duplicate LICENSE symbol and multi-file clang issue
- Update loader.go to hold tcObjs/sslObjs separately with correct field names:
UprobeSslSetFd, UprobeSslReadEntry, UretprobeSslReadExit,
KprobeAccept4Entry, KretprobeAccept4Exit
- Add systemd-rpm-macros to all three RPM build stages (el8/el9/el10)
so that %{_unitdir} macro resolves correctly
- RPMs now build successfully for el8, el9, el10
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
27 lines
943 B
Bash
27 lines
943 B
Bash
#!/usr/bin/env bash
|
|
# =============================================================================
|
|
# entrypoint.sh — Stack Apache HTTPD + ja4ebpf
|
|
# Démarre Apache en foreground et lance ja4ebpf en arrière-plan.
|
|
# =============================================================================
|
|
set -euo pipefail
|
|
|
|
# Activer le module HTTP/2 si pas déjà chargé
|
|
if ! httpd -M 2>/dev/null | grep -q http2_module; then
|
|
echo "LoadModule http2_module modules/mod_http2.so" >> /etc/httpd/conf.modules.d/00-base.conf
|
|
fi
|
|
|
|
# Créer les répertoires de run nécessaires
|
|
mkdir -p /run/httpd /var/log/httpd
|
|
|
|
# Démarrer ja4ebpf en arrière-plan
|
|
/usr/local/bin/ja4ebpf -config /etc/ja4ebpf/config.yml &
|
|
JA4_PID=$!
|
|
echo "[entrypoint] ja4ebpf démarré (PID $JA4_PID)"
|
|
|
|
# Attendre que ja4ebpf charge ses programmes eBPF
|
|
sleep 2
|
|
|
|
# Démarrer Apache HTTPD en foreground
|
|
echo "[entrypoint] Démarrage d'Apache HTTPD..."
|
|
exec /usr/sbin/httpd -DFOREGROUND
|