xref: /openbmc/linux/security/Makefile (revision 520b7aa00d8cd8e411ecc09f63a2acd90feb6d29)
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 Torvaldssubdir-$(CONFIG_SECURITY_SELINUX)	+= selinux
8e114e473SCasey Schauflersubdir-$(CONFIG_SECURITY_SMACK)		+= smack
900d7d6f8SKentaro Takedasubdir-$(CONFIG_SECURITY_TOMOYO)        += tomoyo
10f9ad1af5SJohn Johansensubdir-$(CONFIG_SECURITY_APPARMOR)	+= apparmor
112d514487SKees Cooksubdir-$(CONFIG_SECURITY_YAMA)		+= yama
129b091556SKees Cooksubdir-$(CONFIG_SECURITY_LOADPIN)	+= loadpin
13aeca4e2cSMicah Mortonsubdir-$(CONFIG_SECURITY_SAFESETID)    += safesetid
14000d388eSMatthew Garrettsubdir-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown
15*520b7aa0SKP Singhsubdir-$(CONFIG_BPF_LSM)		+= bpf
161da177e4SLinus Torvalds
175915eb53SMiklos Szeredi# always enable default capabilities
186e141546SDavid Howellsobj-y					+= commoncap.o
196e141546SDavid Howellsobj-$(CONFIG_MMU)			+= min_addr.o
201da177e4SLinus Torvalds
211da177e4SLinus Torvalds# Object file lists
22b1d9e6b0SCasey Schauflerobj-$(CONFIG_SECURITY)			+= security.o
23da31894eSEric Parisobj-$(CONFIG_SECURITYFS)		+= inode.o
24e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_SELINUX)		+= selinux/
25e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_SMACK)		+= smack/
26b2104ac0SStephen Smalleyobj-$(CONFIG_SECURITY)			+= lsm_audit.o
27e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_TOMOYO)		+= tomoyo/
28e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_APPARMOR)		+= apparmor/
29e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_YAMA)		+= yama/
309b091556SKees Cookobj-$(CONFIG_SECURITY_LOADPIN)		+= loadpin/
31aeca4e2cSMicah Mortonobj-$(CONFIG_SECURITY_SAFESETID)       += safesetid/
32000d388eSMatthew Garrettobj-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown/
3308ce5f16SSerge E. Hallynobj-$(CONFIG_CGROUP_DEVICE)		+= device_cgroup.o
34*520b7aa0SKP Singhobj-$(CONFIG_BPF_LSM)			+= bpf/
353323eec9SMimi Zohar
363323eec9SMimi Zohar# Object integrity file lists
37f381c272SMimi Zoharsubdir-$(CONFIG_INTEGRITY)		+= integrity
38e0c2de2bSSam Ravnborgobj-$(CONFIG_INTEGRITY)			+= integrity/
39