Hu
ee9959537f
- %selinux_relabel_post should not relabel files in transactional systems in %post as the policy is not loaded into the kernel directly after install, instead the relabelling will happen on the next boot OBS-URL: https://build.opensuse.org/package/show/security:SELinux/selinux-policy?expand=0&rev=276
23 lines
368 B
Makefile
23 lines
368 B
Makefile
# installation paths
|
|
SHAREDIR := /usr/share/selinux
|
|
|
|
AWK ?= gawk
|
|
NAME ?= $(strip $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config))
|
|
|
|
ifeq ($(MLSENABLED),)
|
|
MLSENABLED := 1
|
|
endif
|
|
|
|
ifeq ($(MLSENABLED),1)
|
|
NTYPE = mcs
|
|
endif
|
|
|
|
ifeq ($(NAME),mls)
|
|
NTYPE = mls
|
|
endif
|
|
|
|
TYPE ?= $(NTYPE)
|
|
|
|
HEADERDIR := $(SHAREDIR)/devel/include
|
|
include $(HEADERDIR)/Makefile
|