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