Skip to content

Conversation

petk
Copy link
Member

@petk petk commented Mar 9, 2024

The SELinux library has had pkg-config/pkgconf integration since ~2009. To ease this change, the check without pkgconf is executed in case the libselinux.pc file is not found on the system.

A sanity check also covers cases where the library path is overriden:
/configure --enable-fpm --with-fpm-selinux
SELINUX_CFLAGS=-I/path/to/libselinux
SELINUX_LIBS="-L/path/to/libselinux -lselinux"

This also removes the redundant symbol HAVE_SELINUX_SELINUX_H since the selinux/selinux.h header is considered a required part of the SELinux library package.

The SELinux library has had pkg-config/pkgconf integration since ~2009.
To ease this change, the check without pkgconf is executed in case the
libselinux.pc file is not found on the system.

A sanity check also covers cases where the library path is overriden:
  /configure --enable-fpm --with-fpm-selinux \
    SELINUX_CFLAGS=-I/path/to/libselinux \
    SELINUX_LIBS="-L/path/to/libselinux -lselinux"

This also removes the redundant symbol HAVE_SELINUX_SELINUX_H since the
selinux/selinux.h header is considered a required part of the SELinux
library package.
@petk petk requested a review from bukka as a code owner March 9, 2024 01:48
@petk petk merged commit 586a0dd into php:master Mar 10, 2024
@petk petk deleted the patch-fpm-selinux branch March 10, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants