blob: 79166bad11d0da479b9f904e09eae00e5a663a7f [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for the kernel security code
3#
4
5obj-$(CONFIG_KEYS) += keys/
6subdir-$(CONFIG_SECURITY_SELINUX) += selinux
Casey Schauflere114e472008-02-04 22:29:50 -08007subdir-$(CONFIG_SECURITY_SMACK) += smack
Kentaro Takeda00d7d6f2009-02-05 17:18:17 +09008subdir-$(CONFIG_SECURITY_TOMOYO) += tomoyo
John Johansenf9ad1af2010-07-29 14:48:08 -07009subdir-$(CONFIG_SECURITY_APPARMOR) += apparmor
Kees Cook2d514482011-12-21 12:17:04 -080010subdir-$(CONFIG_SECURITY_YAMA) += yama
Kees Cook9b091552016-04-20 15:46:28 -070011subdir-$(CONFIG_SECURITY_LOADPIN) += loadpin
Neeraj Sonic692cb92018-04-18 17:20:22 +053012subdir-$(CONFIG_ARCH_QCOM) += pfe
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Miklos Szeredi5915eb52008-07-03 20:56:05 +020014# always enable default capabilities
David Howells6e141542009-12-15 19:27:45 +000015obj-y += commoncap.o
16obj-$(CONFIG_MMU) += min_addr.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
18# Object file lists
Casey Schauflerb1d9e6b2015-05-02 15:11:42 -070019obj-$(CONFIG_SECURITY) += security.o
Eric Parisda318942008-08-22 11:35:57 -040020obj-$(CONFIG_SECURITYFS) += inode.o
Sam Ravnborge0c2de22014-02-15 22:49:30 +010021obj-$(CONFIG_SECURITY_SELINUX) += selinux/
22obj-$(CONFIG_SECURITY_SMACK) += smack/
Thomas Liu2bf49692009-07-14 12:14:09 -040023obj-$(CONFIG_AUDIT) += lsm_audit.o
Sam Ravnborge0c2de22014-02-15 22:49:30 +010024obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo/
25obj-$(CONFIG_SECURITY_APPARMOR) += apparmor/
26obj-$(CONFIG_SECURITY_YAMA) += yama/
Kees Cook9b091552016-04-20 15:46:28 -070027obj-$(CONFIG_SECURITY_LOADPIN) += loadpin/
Neeraj Sonic692cb92018-04-18 17:20:22 +053028obj-$(CONFIG_ARCH_QCOM) += pfe/
Serge E. Hallyn08ce5f12008-04-29 01:00:10 -070029obj-$(CONFIG_CGROUP_DEVICE) += device_cgroup.o
Mimi Zohar3323eec92009-02-04 09:06:58 -050030
31# Object integrity file lists
Mimi Zoharf381c272011-03-09 14:13:22 -050032subdir-$(CONFIG_INTEGRITY) += integrity
Sam Ravnborge0c2de22014-02-15 22:49:30 +010033obj-$(CONFIG_INTEGRITY) += integrity/