xref: /openbmc/linux/security/Makefile (revision 000d388ed3bbed745f366ce71b2bb7c2ee70f449)
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
14*000d388eSMatthew Garrettsubdir-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown
151da177e4SLinus Torvalds
165915eb53SMiklos Szeredi# always enable default capabilities
176e141546SDavid Howellsobj-y					+= commoncap.o
186e141546SDavid Howellsobj-$(CONFIG_MMU)			+= min_addr.o
191da177e4SLinus Torvalds
201da177e4SLinus Torvalds# Object file lists
21b1d9e6b0SCasey Schauflerobj-$(CONFIG_SECURITY)			+= security.o
22da31894eSEric Parisobj-$(CONFIG_SECURITYFS)		+= inode.o
23e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_SELINUX)		+= selinux/
24e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_SMACK)		+= smack/
252bf49690SThomas Liuobj-$(CONFIG_AUDIT)			+= lsm_audit.o
26e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_TOMOYO)		+= tomoyo/
27e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_APPARMOR)		+= apparmor/
28e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_YAMA)		+= yama/
299b091556SKees Cookobj-$(CONFIG_SECURITY_LOADPIN)		+= loadpin/
30aeca4e2cSMicah Mortonobj-$(CONFIG_SECURITY_SAFESETID)       += safesetid/
31*000d388eSMatthew Garrettobj-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown/
3208ce5f16SSerge E. Hallynobj-$(CONFIG_CGROUP_DEVICE)		+= device_cgroup.o
333323eec9SMimi Zohar
343323eec9SMimi Zohar# Object integrity file lists
35f381c272SMimi Zoharsubdir-$(CONFIG_INTEGRITY)		+= integrity
36e0c2de2bSSam Ravnborgobj-$(CONFIG_INTEGRITY)			+= integrity/
37