https://bugs.openldap.org/show_bug.cgi?id=10214
Issue ID: 10214 Summary: Reduce library dependencies Product: OpenLDAP Version: unspecified Hardware: All OS: Linux Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: hamano@osstech.co.jp Target Milestone: ---
Currently, slapd links libsystemd to notify service state to systemd. However, libsystemd link several unnecessary libraries, which increases security risks. The systemd documentation provides a method to send state notifications to systemd using a simple protocol without the need to link against libsystemd.
https://www.freedesktop.org/software/systemd/man/devel/sd_notify.html
I propose removing libsystemd and its depended libraries, similar to the approach taken by OpenSSH.
Applying this fix reduced the following ten dependencies in the RHEL 8 environment.
- libsystemd.so.0 - libblkid.so.1 - libcap.so.2 - libgcc_s.so.1 - libgcrypt.so.20 - libgpg-error.so.0 - liblz4.so.1 - liblzma.so.5 - libmount.so.1 - librt.so.1
https://bugs.openldap.org/show_bug.cgi?id=10214
--- Comment #1 from HAMANO Tsukasa hamano@osstech.co.jp --- https://git.openldap.org/openldap/openldap/-/merge_requests/703
https://bugs.openldap.org/show_bug.cgi?id=10214
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs_review | Ever confirmed|0 |1 Target Milestone|--- |2.5.18 Status|UNCONFIRMED |IN_PROGRESS
https://bugs.openldap.org/show_bug.cgi?id=10214
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|IN_PROGRESS |RESOLVED
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- head:
• c14e3329 by HAMANO Tsukasa at 2024-05-08T09:50:10+09:00 ITS#10214 Reduce library dependencies
• 995a2d45 by HAMANO Tsukasa at 2024-05-09T08:26:41+09:00 refactoring
RE26:
• 71f8894a by HAMANO Tsukasa at 2024-05-09T17:08:46+00:00 ITS#10214 Reduce library dependencies
RE25:
• f7c76e2d by HAMANO Tsukasa at 2024-05-09T17:10:49+00:00 ITS#10214 Reduce library dependencies
https://bugs.openldap.org/show_bug.cgi?id=10214
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED