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 16 17# always enable default capabilities 18obj-y += commoncap.o 19obj-$(CONFIG_MMU) += min_addr.o 20 21# Object file lists 22obj-$(CONFIG_SECURITY) += security.o 23obj-$(CONFIG_SECURITYFS) += inode.o 24obj-$(CONFIG_SECURITY_SELINUX) += selinux/ 25obj-$(CONFIG_SECURITY_SMACK) += smack/ 26obj-$(CONFIG_SECURITY) += lsm_audit.o 27obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo/ 28obj-$(CONFIG_SECURITY_APPARMOR) += apparmor/ 29obj-$(CONFIG_SECURITY_YAMA) += yama/ 30obj-$(CONFIG_SECURITY_LOADPIN) += loadpin/ 31obj-$(CONFIG_SECURITY_SAFESETID) += safesetid/ 32obj-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown/ 33obj-$(CONFIG_CGROUP_DEVICE) += device_cgroup.o 34obj-$(CONFIG_BPF_LSM) += bpf/ 35 36# Object integrity file lists 37subdir-$(CONFIG_INTEGRITY) += integrity 38obj-$(CONFIG_INTEGRITY) += integrity/ 39