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