xref: /openbmc/linux/security/Makefile (revision 762f99f4f3cb41a775b5157dd761217beba65873)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Makefile for the kernel security code
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
61da177e4SLinus Torvaldsobj-$(CONFIG_KEYS)			+= keys/
71da177e4SLinus Torvalds
85915eb53SMiklos Szeredi# always enable default capabilities
96e141546SDavid Howellsobj-y					+= commoncap.o
106e141546SDavid Howellsobj-$(CONFIG_MMU)			+= min_addr.o
111da177e4SLinus Torvalds
121da177e4SLinus Torvalds# Object file lists
13b1d9e6b0SCasey Schauflerobj-$(CONFIG_SECURITY)			+= security.o
14da31894eSEric Parisobj-$(CONFIG_SECURITYFS)		+= inode.o
15e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_SELINUX)		+= selinux/
16e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_SMACK)		+= smack/
17b2104ac0SStephen Smalleyobj-$(CONFIG_SECURITY)			+= lsm_audit.o
18e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_TOMOYO)		+= tomoyo/
19e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_APPARMOR)		+= apparmor/
20e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_YAMA)		+= yama/
219b091556SKees Cookobj-$(CONFIG_SECURITY_LOADPIN)		+= loadpin/
22aeca4e2cSMicah Mortonobj-$(CONFIG_SECURITY_SAFESETID)       += safesetid/
23000d388eSMatthew Garrettobj-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown/
24eec8fd02SOdin Ugedalobj-$(CONFIG_CGROUPS)			+= device_cgroup.o
25520b7aa0SKP Singhobj-$(CONFIG_BPF_LSM)			+= bpf/
26*90945448SMickaël Salaünobj-$(CONFIG_SECURITY_LANDLOCK)		+= landlock/
273323eec9SMimi Zohar
283323eec9SMimi Zohar# Object integrity file lists
29e0c2de2bSSam Ravnborgobj-$(CONFIG_INTEGRITY)			+= integrity/
30