diff --git a/libselinux/Makefile b/libselinux/Makefile index d1532e84..c96695d4 100644 --- a/libselinux/Makefile +++ b/libselinux/Makefile @@ -1,12 +1,8 @@ SUBDIRS = src include utils man -DISABLE_AVC ?= n DISABLE_SETRANS ?= n DISABLE_RPM ?= n DISABLE_BOOL ?= n -ifeq ($(DISABLE_AVC),y) - EMFLAGS+= -DDISABLE_AVC -endif ifeq ($(DISABLE_BOOL),y) EMFLAGS+= -DDISABLE_BOOL endif @@ -16,7 +12,7 @@ endif ifeq ($(DISABLE_SETRANS),y) EMFLAGS+= -DDISABLE_SETRANS endif -export DISABLE_AVC DISABLE_SETRANS DISABLE_RPM DISABLE_BOOL EMFLAGS +export DISABLE_SETRANS DISABLE_RPM DISABLE_BOOL EMFLAGS USE_PCRE2 ?= n ifeq ($(USE_PCRE2),y) diff --git a/libselinux/src/Makefile b/libselinux/src/Makefile index 36e42b81..8cfdf343 100644 --- a/libselinux/src/Makefile +++ b/libselinux/src/Makefile @@ -41,9 +41,6 @@ LIBSO=$(TARGET).$(LIBVERSION) AUDIT2WHYLOBJ=$(PYPREFIX)audit2why.lo AUDIT2WHYSO=$(PYPREFIX)audit2why.so -ifeq ($(DISABLE_AVC),y) - UNUSED_SRCS+=avc.c avc_internal.c avc_sidtab.c mapping.c stringrep.c checkAccess.c -endif ifeq ($(DISABLE_BOOL),y) UNUSED_SRCS+=booleans.c endif diff --git a/libselinux/src/mapping.h b/libselinux/src/mapping.h index b96756b0..22a4ccaf 100644 --- a/libselinux/src/mapping.h +++ b/libselinux/src/mapping.h @@ -31,11 +31,4 @@ map_perm(security_class_t tclass, access_vector_t kperm); extern void map_decision(security_class_t tclass, struct av_decision *avd); -/*mapping is not used for embedded build*/ -#ifdef DISABLE_AVC -#define unmap_perm(x,y) y -#define unmap_class(x) x -#define map_decision(x,y) -#endif - #endif /* _SELINUX_MAPPING_H_ */ diff --git a/libselinux/utils/Makefile b/libselinux/utils/Makefile index 1943befd..9ec928bb 100644 --- a/libselinux/utils/Makefile +++ b/libselinux/utils/Makefile @@ -36,9 +36,6 @@ sefcontext_compile: sefcontext_compile.o ../src/regex.o selinux_restorecon: LDLIBS += -lsepol -ifeq ($(DISABLE_AVC),y) - UNUSED_TARGETS+=compute_av compute_create compute_member compute_relabel -endif ifeq ($(DISABLE_BOOL),y) UNUSED_TARGETS+=getsebool togglesebool endif