Makefile 1.3 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
L
Linus Torvalds 已提交
2 3 4 5 6 7
#
# Makefile for the kernel security code
#

obj-$(CONFIG_KEYS)			+= keys/
subdir-$(CONFIG_SECURITY_SELINUX)	+= selinux
8
subdir-$(CONFIG_SECURITY_SMACK)		+= smack
K
Kentaro Takeda 已提交
9
subdir-$(CONFIG_SECURITY_TOMOYO)        += tomoyo
10
subdir-$(CONFIG_SECURITY_APPARMOR)	+= apparmor
K
Kees Cook 已提交
11
subdir-$(CONFIG_SECURITY_YAMA)		+= yama
12
subdir-$(CONFIG_SECURITY_LOADPIN)	+= loadpin
13
subdir-$(CONFIG_SECURITY_SAFESETID)    += safesetid
14
subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown
15
subdir-$(CONFIG_BPF_LSM)		+= bpf
L
Linus Torvalds 已提交
16

M
Miklos Szeredi 已提交
17
# always enable default capabilities
18 19
obj-y					+= commoncap.o
obj-$(CONFIG_MMU)			+= min_addr.o
L
Linus Torvalds 已提交
20 21

# Object file lists
C
Casey Schaufler 已提交
22
obj-$(CONFIG_SECURITY)			+= security.o
23
obj-$(CONFIG_SECURITYFS)		+= inode.o
24 25
obj-$(CONFIG_SECURITY_SELINUX)		+= selinux/
obj-$(CONFIG_SECURITY_SMACK)		+= smack/
26
obj-$(CONFIG_SECURITY)			+= lsm_audit.o
27 28 29
obj-$(CONFIG_SECURITY_TOMOYO)		+= tomoyo/
obj-$(CONFIG_SECURITY_APPARMOR)		+= apparmor/
obj-$(CONFIG_SECURITY_YAMA)		+= yama/
30
obj-$(CONFIG_SECURITY_LOADPIN)		+= loadpin/
31
obj-$(CONFIG_SECURITY_SAFESETID)       += safesetid/
32
obj-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown/
33
obj-$(CONFIG_CGROUP_DEVICE)		+= device_cgroup.o
34
obj-$(CONFIG_BPF_LSM)			+= bpf/
35 36

# Object integrity file lists
37
subdir-$(CONFIG_INTEGRITY)		+= integrity
38
obj-$(CONFIG_INTEGRITY)			+= integrity/