blob: b56e7f9ecbc2adf22706a849d704d8761dfa91dd [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
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
Miklos Szeredi5915eb52008-07-03 20:56:05 +020010# always enable default capabilities
Eric Paris788084a2009-07-31 12:54:11 -040011obj-y += commoncap.o min_addr.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
13# Object file lists
Eric Parisda318942008-08-22 11:35:57 -040014obj-$(CONFIG_SECURITY) += security.o capability.o
15obj-$(CONFIG_SECURITYFS) += inode.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070016# Must precede capability.o in order to stack properly.
17obj-$(CONFIG_SECURITY_SELINUX) += selinux/built-in.o
Miklos Szeredi5915eb52008-07-03 20:56:05 +020018obj-$(CONFIG_SECURITY_SMACK) += smack/built-in.o
Etienne Bassetecfcc532009-04-08 20:40:06 +020019ifeq ($(CONFIG_AUDIT),y)
20obj-$(CONFIG_SECURITY_SMACK) += lsm_audit.o
21endif
James Morris42d5aaa2009-02-12 16:29:04 +110022obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo/built-in.o
Miklos Szeredi5915eb52008-07-03 20:56:05 +020023obj-$(CONFIG_SECURITY_ROOTPLUG) += root_plug.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
27subdir-$(CONFIG_IMA) += integrity/ima
28obj-$(CONFIG_IMA) += integrity/ima/built-in.o