blob: 7ef1107a72875412e3cdc52f48fe609f7dfbc764 [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
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
9# if we don't select a security model, use the default capabilities
10ifneq ($(CONFIG_SECURITY),y)
11obj-y += commoncap.o
12endif
13
14# Object file lists
Greg KHb67dbf92005-07-07 14:37:53 -070015obj-$(CONFIG_SECURITY) += security.o dummy.o 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
Casey Schauflere114e472008-02-04 22:29:50 -080018obj-$(CONFIG_SECURITY_SMACK) += commoncap.o smack/built-in.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070019obj-$(CONFIG_SECURITY_CAPABILITIES) += commoncap.o capability.o
20obj-$(CONFIG_SECURITY_ROOTPLUG) += commoncap.o root_plug.o
Serge E. Hallyn08ce5f12008-04-29 01:00:10 -070021obj-$(CONFIG_CGROUP_DEVICE) += device_cgroup.o