mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
package/libselinux: Adjust fstab during TARGET_FINALIZE
Doing so in the INSTALL_CMD makes the fstab adjustment subject to overwrites by other packages during a per-package build. Currently since per-package directories are populated using hardlinks this adjustment propagates backwards into the skeleton package, but this should not be relied upon. Cc: Antoine Tenart <atenart@kernel.org> Cc: Marcus Folkesson <marcus.folkesson@gmail.com> Signed-off-by: John Ernberg <j@j-ernberg.se> Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
committed by
Arnout Vandecappelle
parent
319eeda6fa
commit
7bb6e399d9
@@ -72,9 +72,13 @@ define LIBSELINUX_INSTALL_TARGET_CMDS
|
|||||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||||
$(LIBSELINUX_MAKE_OPTS) DESTDIR=$(TARGET_DIR) \
|
$(LIBSELINUX_MAKE_OPTS) DESTDIR=$(TARGET_DIR) \
|
||||||
$(LIBSELINUX_MAKE_INSTALL_TARGETS)
|
$(LIBSELINUX_MAKE_INSTALL_TARGETS)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define LIBSELINUX_TARGET_ADD_FSTAB_ENTRY
|
||||||
if ! grep -q "selinuxfs" $(TARGET_DIR)/etc/fstab; then \
|
if ! grep -q "selinuxfs" $(TARGET_DIR)/etc/fstab; then \
|
||||||
echo "none /sys/fs/selinux selinuxfs noauto 0 0" >> $(TARGET_DIR)/etc/fstab ; fi
|
echo "none /sys/fs/selinux selinuxfs noauto 0 0" >> $(TARGET_DIR)/etc/fstab ; fi
|
||||||
endef
|
endef
|
||||||
|
LIBSELINUX_TARGET_FINALIZE_HOOKS += LIBSELINUX_TARGET_ADD_FSTAB_ENTRY
|
||||||
|
|
||||||
HOST_LIBSELINUX_DEPENDENCIES = \
|
HOST_LIBSELINUX_DEPENDENCIES = \
|
||||||
host-pkgconf \
|
host-pkgconf \
|
||||||
|
|||||||
Reference in New Issue
Block a user