Skip to contentSkip to conversation

Loadable policy module infrastructure

PATCH In review Joshua Brindle 1 participant 1 message May 26, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 Loadable policy module infrastructure

checkpolicy/Makefile +7 -6
diff -burNd a1/checkpolicy/Makefile b/checkpolicy/Makefile
@@ -1,20 +1,21 @@
 #
 # Makefile for building the checkpolicy program
 #
-PREFIX ?= ${DESTDIR}/usr
+PREFIX ?= $(DESTDIR)/usr
 BINDIR ?= $(PREFIX)/bin
 MANDIR ?= $(PREFIX)/share/man
-LIBDIR ?= ${PREFIX}/lib
-INCLUDEDIR ?= ${PREFIX}/include
+LIBDIR ?= $(PREFIX)/lib
+INCLUDEDIR ?= $(PREFIX)/include
 TARGETS = checkpolicy 
 
-CFLAGS = -g -Wall -O2 -pipe
+CFLAGS = -g -Wall -O2 -pipe -fno-strict-aliasing
 
-override CFLAGS += -I. -I${INCLUDEDIR}
+#override CFLAGS += -I. -I$(INCLUDEDIR)
+CFLAGS += -I. -I../libselinux/include -I../libsepol/include -I../libsemod/include
 
 OBJS += y.tab.o lex.yy.o queue.o checkpolicy.o
 
-LIBS=-lfl ${LIBDIR}/libsepol.a
+LIBS=-lfl $(LIBDIR)/libsepol.a
 
 all:  $(TARGETS)
 
checkpolicy/checkpolicy.c +48 -91

263 lines not on this page · raw message

checkpolicy/policy_parse.y +611 -1158

2,547 lines not on this page · raw message

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.