blob: 22e73a3482bd6c393a8a3f712bebf263692d16ca [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
3# Makefile for the kernel security code
4#
5
6obj-$(CONFIG_KEYS) += keys/
7subdir-$(CONFIG_SECURITY_SELINUX) += selinux
Casey Schauflere114e472008-02-04 22:29:50 -08008subdir-$(CONFIG_SECURITY_SMACK) += smack
Kentaro Takeda00d7d6f2009-02-05 17:18:17 +09009subdir-$(CONFIG_SECURITY_TOMOYO) += tomoyo
John Johansenf9ad1af2010-07-29 14:48:08 -070010subdir-$(CONFIG_SECURITY_APPARMOR) += apparmor
Kees Cook2d514482011-12-21 12:17:04 -080011subdir-$(CONFIG_SECURITY_YAMA) += yama
Kees Cook9b091552016-04-20 15:46:28 -070012subdir-$(CONFIG_SECURITY_LOADPIN) += loadpin
Micah Mortonaeca4e22019-01-16 07:46:06 -080013subdir-$(CONFIG_SECURITY_SAFESETID) += safesetid
Matthew Garrett000d3882019-08-19 17:17:39 -070014subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown
KP Singh520b7aa2020-03-29 01:43:53 +010015subdir-$(CONFIG_BPF_LSM) += bpf
Linus Torvalds1da177e2005-04-16 15:20:36 -070016
Miklos Szeredi5915eb52008-07-03 20:56:05 +020017# always enable default capabilities
David Howells6e141542009-12-15 19:27:45 +000018obj-y += commoncap.o
19obj-$(CONFIG_MMU) += min_addr.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
21# Object file lists
Casey Schauflerb1d9e6b2015-05-02 15:11:42 -070022obj-$(CONFIG_SECURITY) += security.o
Eric Parisda318942008-08-22 11:35:57 -040023obj-$(CONFIG_SECURITYFS) += inode.o
Sam Ravnborge0c2de22014-02-15 22:49:30 +010024obj-$(CONFIG_SECURITY_SELINUX) += selinux/
25obj-$(CONFIG_SECURITY_SMACK) += smack/
Stephen Smalleyb2104ac2019-12-10 11:55:41 -050026obj-$(CONFIG_SECURITY) += lsm_audit.o
Sam Ravnborge0c2de22014-02-15 22:49:30 +010027obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo/
28obj-$(CONFIG_SECURITY_APPARMOR) += apparmor/
29obj-$(CONFIG_SECURITY_YAMA) += yama/
Kees Cook9b091552016-04-20 15:46:28 -070030obj-$(CONFIG_SECURITY_LOADPIN) += loadpin/
Micah Mortonaeca4e22019-01-16 07:46:06 -080031obj-$(CONFIG_SECURITY_SAFESETID) += safesetid/
Matthew Garrett000d3882019-08-19 17:17:39 -070032obj-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown/
Serge E. Hallyn08ce5f12008-04-29 01:00:10 -070033obj-$(CONFIG_CGROUP_DEVICE) += device_cgroup.o
KP Singh520b7aa2020-03-29 01:43:53 +010034obj-$(CONFIG_BPF_LSM) += bpf/
Mimi Zohar3323eec2009-02-04 09:06:58 -050035
36# Object integrity file lists
Mimi Zoharf381c272011-03-09 14:13:22 -050037subdir-$(CONFIG_INTEGRITY) += integrity
Sam Ravnborge0c2de22014-02-15 22:49:30 +010038obj-$(CONFIG_INTEGRITY) += integrity/