mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00

If extended permissions are supported use them. We need to build a permission table and set the accept state of the chfa up as an index into the table. For now map the front end permission layout into the old format and then convert that to the perms table just as the kernel does. Signed-off-by: John Johansen <john.johansen@canonical.com>
44 lines
969 B
Makefile
44 lines
969 B
Makefile
# Profiling:
|
|
#EXTRA_CFLAGS = -pg
|
|
|
|
ifdef USE_SYSTEM
|
|
# Using the system libapparmor
|
|
INCLUDE_APPARMOR =
|
|
else
|
|
INCLUDE_APPARMOR = -I../../libraries/libapparmor/include
|
|
endif
|
|
|
|
TARGET=libapparmor_re.a
|
|
|
|
AR ?= ar
|
|
CFLAGS ?= -g -Wall -O2 ${EXTRA_CFLAGS} -std=gnu++0x
|
|
CXXFLAGS := ${CFLAGS} ${INCLUDE_APPARMOR}
|
|
|
|
ARFLAGS=-rcs
|
|
|
|
BISON := bison
|
|
|
|
all : ${TARGET}
|
|
|
|
UNITTESTS = tst_parse
|
|
|
|
libapparmor_re.a: parse.o expr-tree.o hfa.o chfa.o aare_rules.o policy_compat.o
|
|
${AR} ${ARFLAGS} $@ $^
|
|
|
|
expr-tree.o: expr-tree.cc expr-tree.h
|
|
|
|
hfa.o: hfa.cc apparmor_re.h hfa.h ../immunix.h policy_compat.h
|
|
|
|
aare_rules.o: aare_rules.cc aare_rules.h apparmor_re.h expr-tree.h hfa.h chfa.h parse.h ../immunix.h
|
|
|
|
chfa.o: chfa.cc chfa.h ../immunix.h
|
|
|
|
policy_compat.o: policy_compat.cc policy_compat.h ../perms.h ../immunix.h
|
|
|
|
parse.o : parse.cc apparmor_re.h expr-tree.h
|
|
|
|
parse.cc : parse.y parse.h flex-tables.h ../immunix.h
|
|
${BISON} -o $@ $<
|
|
|
|
clean:
|
|
rm -f *.o parse.cc ${TARGET} *.gcda *.gcno
|