blob: a5e502f8a05bcf9285a6924a37ad431bb55c6bb4 [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
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
Miklos Szeredi5915eb52008-07-03 20:56:05 +020011# always enable default capabilities
David Howells6e141542009-12-15 19:27:45 +000012obj-y += commoncap.o
13obj-$(CONFIG_MMU) += min_addr.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070014
15# Object file lists
Eric Parisda318942008-08-22 11:35:57 -040016obj-$(CONFIG_SECURITY) += security.o capability.o
17obj-$(CONFIG_SECURITYFS) += inode.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070018# Must precede capability.o in order to stack properly.
19obj-$(CONFIG_SECURITY_SELINUX) += selinux/built-in.o
Miklos Szeredi5915eb52008-07-03 20:56:05 +020020obj-$(CONFIG_SECURITY_SMACK) += smack/built-in.o
Thomas Liu2bf49692009-07-14 12:14:09 -040021obj-$(CONFIG_AUDIT) += lsm_audit.o
James Morris42d5aaa2009-02-12 16:29:04 +110022obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo/built-in.o
John Johansenf9ad1af2010-07-29 14:48:08 -070023obj-$(CONFIG_SECURITY_APPARMOR) += apparmor/built-in.o
Serge E. Hallyn08ce5f12008-04-29 01:00:10 -070024obj-$(CONFIG_CGROUP_DEVICE) += device_cgroup.o
Mimi Zohar3323eec2009-02-04 09:06:58 -050025
26# Object integrity file lists
Mimi Zoharf381c272011-03-09 14:13:22 -050027subdir-$(CONFIG_INTEGRITY) += integrity
28obj-$(CONFIG_INTEGRITY) += integrity/built-in.o