Add automatic apparmor tag discovery
The 'apparmor' build tag is now added if libappamor was found on the local system. Signed-off-by: Sascha Grunert <sgrunert@suse.com> Closes: #1763 Approved by: rhatdan
This commit is contained in:
parent
ac5031de80
commit
1de958dc99
3
Makefile
3
Makefile
|
@ -1,6 +1,7 @@
|
|||
SELINUXTAG := $(shell ./selinux_tag.sh)
|
||||
APPARMORTAG := $(shell hack/apparmor_tag.sh)
|
||||
STORAGETAGS := $(shell ./btrfs_tag.sh) $(shell ./btrfs_installed_tag.sh) $(shell ./libdm_tag.sh) $(shell ./ostree_tag.sh)
|
||||
SECURITYTAGS ?= seccomp $(SELINUXTAG)
|
||||
SECURITYTAGS ?= seccomp $(SELINUXTAG) $(APPARMORTAG)
|
||||
TAGS ?= $(SECURITYTAGS) $(STORAGETAGS)
|
||||
BUILDTAGS += $(TAGS)
|
||||
PREFIX := /usr/local
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
if pkg-config libapparmor 2>/dev/null; then
|
||||
echo apparmor
|
||||
fi
|
Loading…
Reference in New Issue