xref: /OK3568_Linux_fs/buildroot/package/apparmor/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_APPARMOR
2	bool "apparmor"
3	depends on BR2_USE_MMU # fork()
4	depends on BR2_INSTALL_LIBSTDCPP
5	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libapparmor
6	depends on BR2_TOOLCHAIN_HAS_THREADS # libapparmor
7	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16 # libapparmor
8	select BR2_PACKAGE_LIBAPPARMOR
9	help
10	  AppArmor is an effective and easy-to-use Linux application
11	  security system. AppArmor proactively protects the operating
12	  system and applications from external or internal threats,
13	  even zero-day attacks, by enforcing good behavior and
14	  preventing even unknown application flaws from being
15	  exploited.
16
17	  This package builds the parser (which can load profiles).
18
19	  http://wiki.apparmor.net
20
21if BR2_PACKAGE_APPARMOR
22
23config BR2_PACKAGE_APPARMOR_BINUTILS
24	bool "binutils"
25	help
26	  A set of utilities (written in C):
27	    aa-enabled    aa-exec
28
29comment "utils need python3"
30	depends on !BR2_PACKAGE_PYTHON3
31
32config BR2_PACKAGE_APPARMOR_UTILS
33	bool "utils"
34	depends on BR2_PACKAGE_PYTHON3
35	select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # net-tools
36	select BR2_PACKAGE_NET_TOOLS # runtime (aa-unconfined)
37	select BR2_PACKAGE_PYTHON3_READLINE
38	help
39	  A set of utilities (written in python):
40	    aa-audit          aa-disable      aa-logprof
41	    aa-autodep        aa-easyprof     aa-mergeprof
42	    aa-cleanprof      aa-enforce      aa-status
43	    aa-complain       aa-genprof      aa-unconfined
44
45if BR2_PACKAGE_APPARMOR_UTILS
46
47comment "utils (extras) need bash and perl, and busybox or gawk"
48	depends on !BR2_PACKAGE_BASH || !BR2_PACKAGE_PERL \
49		|| !(BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_GAWK)
50
51config BR2_PACKAGE_APPARMOR_UTILS_EXTRA
52	bool "utils (extras)"
53	depends on BR2_PACKAGE_BASH
54	depends on BR2_PACKAGE_PERL
55	depends on BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_GAWK
56	help
57	  An extra set of utilities (written in a mixture of sh,
58	  bash, perl, and awk):
59	    aa-decode          (bash + perl)
60	    aa-notify          (perl)
61	    aa-remove-unknown  (sh + awk)
62
63endif # BR2_PACKAGE_APPARMOR_UTILS
64
65config BR2_PACKAGE_APPARMOR_PROFILES
66	bool "profiles"
67	help
68	  Installs server-class profiles for a wide range of
69	  usual programs and daemons.
70
71endif # BR2_PACKAGE_APPARMOR
72
73comment "apparmor needs a toolchain w/ headers >= 3.16, threads, C++"
74	depends on BR2_USE_MMU
75	depends on BR2_TOOLCHAIN_HAS_SYNC_4
76	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
77		|| !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
78