xref: /kernel/linux/linux-5.10/security/Makefile (revision 8c2ecf20)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the kernel security code
4#
5
6obj-$(CONFIG_KEYS)			+= keys/
7subdir-$(CONFIG_SECURITY_SELINUX)	+= selinux
8subdir-$(CONFIG_SECURITY_SMACK)		+= smack
9subdir-$(CONFIG_SECURITY_TOMOYO)        += tomoyo
10subdir-$(CONFIG_SECURITY_APPARMOR)	+= apparmor
11subdir-$(CONFIG_SECURITY_YAMA)		+= yama
12subdir-$(CONFIG_SECURITY_LOADPIN)	+= loadpin
13subdir-$(CONFIG_SECURITY_SAFESETID)    += safesetid
14subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown
15subdir-$(CONFIG_BPF_LSM)		+= bpf
16subdir-$(CONFIG_SECURITY_XPM)			+= xpm
17subdir-$(CONFIG_SECURITY_CONTAINER_ESCAPE_DETECTION) += container_escape_detection
18
19# always enable default capabilities
20obj-y					+= commoncap.o
21obj-$(CONFIG_MMU)			+= min_addr.o
22
23# Object file lists
24obj-$(CONFIG_SECURITY)			+= security.o
25obj-$(CONFIG_SECURITYFS)		+= inode.o
26obj-$(CONFIG_SECURITY_SELINUX)		+= selinux/
27obj-$(CONFIG_SECURITY_SMACK)		+= smack/
28obj-$(CONFIG_SECURITY)			+= lsm_audit.o
29obj-$(CONFIG_SECURITY_TOMOYO)		+= tomoyo/
30obj-$(CONFIG_SECURITY_APPARMOR)		+= apparmor/
31obj-$(CONFIG_SECURITY_YAMA)		+= yama/
32obj-$(CONFIG_SECURITY_LOADPIN)		+= loadpin/
33obj-$(CONFIG_SECURITY_SAFESETID)       += safesetid/
34obj-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown/
35obj-$(CONFIG_CGROUPS)			+= device_cgroup.o
36obj-$(CONFIG_BPF_LSM)			+= bpf/
37obj-$(CONFIG_SECURITY_XPM)		+= xpm/
38obj-$(CONFIG_SECURITY_CONTAINER_ESCAPE_DETECTION) += container_escape_detection/
39
40# Object integrity file lists
41subdir-$(CONFIG_INTEGRITY)		+= integrity
42obj-$(CONFIG_INTEGRITY)			+= integrity/
43