xref: /openbmc/linux/security/Makefile (revision 90945448e9830aa1b39d7acaa4e0724a001e2ff8)
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
15520b7aa0SKP Singhsubdir-$(CONFIG_BPF_LSM)		+= bpf
16*90945448SMickaël Salaünsubdir-$(CONFIG_SECURITY_LANDLOCK)	+= landlock
171da177e4SLinus Torvalds
185915eb53SMiklos Szeredi# always enable default capabilities
196e141546SDavid Howellsobj-y					+= commoncap.o
206e141546SDavid Howellsobj-$(CONFIG_MMU)			+= min_addr.o
211da177e4SLinus Torvalds
221da177e4SLinus Torvalds# Object file lists
23b1d9e6b0SCasey Schauflerobj-$(CONFIG_SECURITY)			+= security.o
24da31894eSEric Parisobj-$(CONFIG_SECURITYFS)		+= inode.o
25e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_SELINUX)		+= selinux/
26e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_SMACK)		+= smack/
27b2104ac0SStephen Smalleyobj-$(CONFIG_SECURITY)			+= lsm_audit.o
28e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_TOMOYO)		+= tomoyo/
29e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_APPARMOR)		+= apparmor/
30e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_YAMA)		+= yama/
319b091556SKees Cookobj-$(CONFIG_SECURITY_LOADPIN)		+= loadpin/
32aeca4e2cSMicah Mortonobj-$(CONFIG_SECURITY_SAFESETID)       += safesetid/
33000d388eSMatthew Garrettobj-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown/
34eec8fd02SOdin Ugedalobj-$(CONFIG_CGROUPS)			+= device_cgroup.o
35520b7aa0SKP Singhobj-$(CONFIG_BPF_LSM)			+= bpf/
36*90945448SMickaël Salaünobj-$(CONFIG_SECURITY_LANDLOCK)		+= landlock/
373323eec9SMimi Zohar
383323eec9SMimi Zohar# Object integrity file lists
39f381c272SMimi Zoharsubdir-$(CONFIG_INTEGRITY)		+= integrity
40e0c2de2bSSam Ravnborgobj-$(CONFIG_INTEGRITY)			+= integrity/
41