11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Makefile for the kernel security code 31da177e4SLinus Torvalds# 41da177e4SLinus Torvalds 51da177e4SLinus Torvaldsobj-$(CONFIG_KEYS) += keys/ 61da177e4SLinus Torvaldssubdir-$(CONFIG_SECURITY_SELINUX) += selinux 7e114e473SCasey Schauflersubdir-$(CONFIG_SECURITY_SMACK) += smack 81da177e4SLinus Torvalds 91da177e4SLinus Torvalds# if we don't select a security model, use the default capabilities 101da177e4SLinus Torvaldsifneq ($(CONFIG_SECURITY),y) 111da177e4SLinus Torvaldsobj-y += commoncap.o 121da177e4SLinus Torvaldsendif 131da177e4SLinus Torvalds 141da177e4SLinus Torvalds# Object file lists 15b67dbf9dSGreg KHobj-$(CONFIG_SECURITY) += security.o dummy.o inode.o 161da177e4SLinus Torvalds# Must precede capability.o in order to stack properly. 171da177e4SLinus Torvaldsobj-$(CONFIG_SECURITY_SELINUX) += selinux/built-in.o 18e114e473SCasey Schauflerobj-$(CONFIG_SECURITY_SMACK) += commoncap.o smack/built-in.o 191da177e4SLinus Torvaldsobj-$(CONFIG_SECURITY_CAPABILITIES) += commoncap.o capability.o 201da177e4SLinus Torvaldsobj-$(CONFIG_SECURITY_ROOTPLUG) += commoncap.o root_plug.o 21*08ce5f16SSerge E. Hallynobj-$(CONFIG_CGROUP_DEVICE) += device_cgroup.o 22