blob: 18121f8f85cd7d0d99f758ee9eaf0cd389e2e078 [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/
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
Miklos Szeredi5915eb52008-07-03 20:56:05 +02008# always enable default capabilities
David Howells6e141542009-12-15 19:27:45 +00009obj-y += commoncap.o
10obj-$(CONFIG_MMU) += min_addr.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
12# Object file lists
Casey Schauflerb1d9e6b2015-05-02 15:11:42 -070013obj-$(CONFIG_SECURITY) += security.o
Eric Parisda318942008-08-22 11:35:57 -040014obj-$(CONFIG_SECURITYFS) += inode.o
Sam Ravnborge0c2de22014-02-15 22:49:30 +010015obj-$(CONFIG_SECURITY_SELINUX) += selinux/
16obj-$(CONFIG_SECURITY_SMACK) += smack/
Stephen Smalleyb2104ac2019-12-10 11:55:41 -050017obj-$(CONFIG_SECURITY) += lsm_audit.o
Sam Ravnborge0c2de22014-02-15 22:49:30 +010018obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo/
19obj-$(CONFIG_SECURITY_APPARMOR) += apparmor/
20obj-$(CONFIG_SECURITY_YAMA) += yama/
Kees Cook9b091552016-04-20 15:46:28 -070021obj-$(CONFIG_SECURITY_LOADPIN) += loadpin/
Micah Mortonaeca4e22019-01-16 07:46:06 -080022obj-$(CONFIG_SECURITY_SAFESETID) += safesetid/
Matthew Garrett000d3882019-08-19 17:17:39 -070023obj-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown/
Odin Ugedaleec8fd02020-04-03 19:55:28 +020024obj-$(CONFIG_CGROUPS) += device_cgroup.o
KP Singh520b7aa2020-03-29 01:43:53 +010025obj-$(CONFIG_BPF_LSM) += bpf/
Mickaël Salaün90945442021-04-22 17:41:11 +020026obj-$(CONFIG_SECURITY_LANDLOCK) += landlock/
Mimi Zohar3323eec2009-02-04 09:06:58 -050027
28# Object integrity file lists
Sam Ravnborge0c2de22014-02-15 22:49:30 +010029obj-$(CONFIG_INTEGRITY) += integrity/