diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-11 00:27:06 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-19 14:27:34 +0200 |
commit | 0bbd84e31ec8bbe8d1e28e981c577fd56c8b8664 (patch) | |
tree | 67fa887d11c60c126ab04e66f4f970e2dfb66dc0 /lib/Makemodule.am | |
parent | 7097dda129654a5e054c1d64e72bfd189b4964b2 (diff) |
Add SELinux labeling to fstree code
Use libselinux to lookup the context attributes from a file.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/Makemodule.am')
-rw-r--r-- | lib/Makemodule.am | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Makemodule.am b/lib/Makemodule.am index cd24eae..737b474 100644 --- a/lib/Makemodule.am +++ b/lib/Makemodule.am @@ -1,6 +1,8 @@ libfstree_a_SOURCES = lib/fstree/fstree.c lib/fstree/fstree_from_file.c libfstree_a_SOURCES += lib/fstree/fstree_sort.c libfstree_a_SOURCES += include/fstree.h +libfstree_a_CFLAGS = $(AM_CFLAGS) +libfstree_a_CPPFLAGS = $(AM_CPPFLAGS) libcompress_a_SOURCES = lib/comp/compressor.c lib/comp/internal.h libcompress_a_SOURCES += include/compress.h @@ -50,4 +52,11 @@ libcompress_a_CFLAGS += $(LZ4_CFLAGS) libcompress_a_CPPFLAGS += -DWITH_LZ4 endif +if WITH_SELINUX +libfstree_a_SOURCES += lib/fstree/selinux.c + +libfstree_a_CFLAGS += $(LIBSELINUX_CFLAGS) +libfstree_a_CPPFLAGS += -DWITH_SELINUX +endif + noinst_LIBRARIES += libfstree.a libcompress.a libutil.a libsquashfs.a |