xref: /linux/security/Makefile (revision 1260ed77798502de9c98020040d2995008de10cc)
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
10a04a1198SCasey Schauflerobj-$(CONFIG_SECURITY) 			+= lsm_syscalls.o
116e141546SDavid Howellsobj-$(CONFIG_MMU)			+= min_addr.o
121da177e4SLinus Torvalds
131da177e4SLinus Torvalds# Object file lists
14b1d9e6b0SCasey Schauflerobj-$(CONFIG_SECURITY)			+= security.o
15da31894eSEric Parisobj-$(CONFIG_SECURITYFS)		+= inode.o
16e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_SELINUX)		+= selinux/
17e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_SMACK)		+= smack/
18*7ccbe076SMickaël Salaünobj-$(CONFIG_HAS_SECURITY_AUDIT)	+= lsm_audit.o
19e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_TOMOYO)		+= tomoyo/
20e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_APPARMOR)		+= apparmor/
21e0c2de2bSSam Ravnborgobj-$(CONFIG_SECURITY_YAMA)		+= yama/
229b091556SKees Cookobj-$(CONFIG_SECURITY_LOADPIN)		+= loadpin/
23aeca4e2cSMicah Mortonobj-$(CONFIG_SECURITY_SAFESETID)       += safesetid/
24000d388eSMatthew Garrettobj-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown/
25eec8fd02SOdin Ugedalobj-$(CONFIG_CGROUPS)			+= device_cgroup.o
26520b7aa0SKP Singhobj-$(CONFIG_BPF_LSM)			+= bpf/
2790945448SMickaël Salaünobj-$(CONFIG_SECURITY_LANDLOCK)		+= landlock/
2803115077SDeven Bowersobj-$(CONFIG_SECURITY_IPE)		+= ipe/
293323eec9SMimi Zohar
303323eec9SMimi Zohar# Object integrity file lists
31e0c2de2bSSam Ravnborgobj-$(CONFIG_INTEGRITY)			+= integrity/
32