xref: /kernel/linux/linux-5.10/security/Makefile (revision 8c2ecf20)
18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci#
38c2ecf20Sopenharmony_ci# Makefile for the kernel security code
48c2ecf20Sopenharmony_ci#
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciobj-$(CONFIG_KEYS)			+= keys/
78c2ecf20Sopenharmony_cisubdir-$(CONFIG_SECURITY_SELINUX)	+= selinux
88c2ecf20Sopenharmony_cisubdir-$(CONFIG_SECURITY_SMACK)		+= smack
98c2ecf20Sopenharmony_cisubdir-$(CONFIG_SECURITY_TOMOYO)        += tomoyo
108c2ecf20Sopenharmony_cisubdir-$(CONFIG_SECURITY_APPARMOR)	+= apparmor
118c2ecf20Sopenharmony_cisubdir-$(CONFIG_SECURITY_YAMA)		+= yama
128c2ecf20Sopenharmony_cisubdir-$(CONFIG_SECURITY_LOADPIN)	+= loadpin
138c2ecf20Sopenharmony_cisubdir-$(CONFIG_SECURITY_SAFESETID)    += safesetid
148c2ecf20Sopenharmony_cisubdir-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown
158c2ecf20Sopenharmony_cisubdir-$(CONFIG_BPF_LSM)		+= bpf
168c2ecf20Sopenharmony_cisubdir-$(CONFIG_SECURITY_XPM)			+= xpm
178c2ecf20Sopenharmony_cisubdir-$(CONFIG_SECURITY_CONTAINER_ESCAPE_DETECTION) += container_escape_detection
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci# always enable default capabilities
208c2ecf20Sopenharmony_ciobj-y					+= commoncap.o
218c2ecf20Sopenharmony_ciobj-$(CONFIG_MMU)			+= min_addr.o
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci# Object file lists
248c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITY)			+= security.o
258c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITYFS)		+= inode.o
268c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITY_SELINUX)		+= selinux/
278c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITY_SMACK)		+= smack/
288c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITY)			+= lsm_audit.o
298c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITY_TOMOYO)		+= tomoyo/
308c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITY_APPARMOR)		+= apparmor/
318c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITY_YAMA)		+= yama/
328c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITY_LOADPIN)		+= loadpin/
338c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITY_SAFESETID)       += safesetid/
348c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown/
358c2ecf20Sopenharmony_ciobj-$(CONFIG_CGROUPS)			+= device_cgroup.o
368c2ecf20Sopenharmony_ciobj-$(CONFIG_BPF_LSM)			+= bpf/
378c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITY_XPM)		+= xpm/
388c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITY_CONTAINER_ESCAPE_DETECTION) += container_escape_detection/
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci# Object integrity file lists
418c2ecf20Sopenharmony_cisubdir-$(CONFIG_INTEGRITY)		+= integrity
428c2ecf20Sopenharmony_ciobj-$(CONFIG_INTEGRITY)			+= integrity/
43