xref: /openbmc/linux/security/Makefile (revision aeca4e2ca65c1aeacfbe520684e6421719d99417)
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
13*aeca4e2cSMicah Mortonsubdir-$(CONFIG_SECURITY_SAFESETID)    += safesetid
141da177e4SLinus Torvalds
155915eb53SMiklos Szeredi# always enable default capabilities
166e141546SDavid Howellsobj-y					+= commoncap.o
176e141546SDavid Howellsobj-$(CONFIG_MMU)			+= min_addr.o
181da177e4SLinus Torvalds
191da177e4SLinus Torvalds# Object file lists
20b1d9e6b0SCasey Schauflerobj-$(CONFIG_SECURITY)			+= security.o
21da31894eSEric Parisobj-$(CONFIG_SECURITYFS)		+= inode.o
22e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_SELINUX)		+= selinux/
23e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_SMACK)		+= smack/
242bf49690SThomas Liuobj-$(CONFIG_AUDIT)			+= lsm_audit.o
25e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_TOMOYO)		+= tomoyo/
26e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_APPARMOR)		+= apparmor/
27e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_YAMA)		+= yama/
289b091556SKees Cookobj-$(CONFIG_SECURITY_LOADPIN)		+= loadpin/
29*aeca4e2cSMicah Mortonobj-$(CONFIG_SECURITY_SAFESETID)       += safesetid/
3008ce5f16SSerge E. Hallynobj-$(CONFIG_CGROUP_DEVICE)		+= device_cgroup.o
313323eec9SMimi Zohar
323323eec9SMimi Zohar# Object integrity file lists
33f381c272SMimi Zoharsubdir-$(CONFIG_INTEGRITY)		+= integrity
34e0c2de2bSSam Ravnborgobj-$(CONFIG_INTEGRITY)			+= integrity/
35