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