blob: be1dd9d2cb2fb90d3969902e456144b6ecc3ea89 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the kernel security code
4#
5
6obj-$(CONFIG_KEYS) += keys/
7subdir-$(CONFIG_SECURITY_SELINUX) += selinux
8subdir-$(CONFIG_SECURITY_SMACK) += smack
9subdir-$(CONFIG_SECURITY_TOMOYO) += tomoyo
10subdir-$(CONFIG_SECURITY_APPARMOR) += apparmor
11subdir-$(CONFIG_SECURITY_YAMA) += yama
12subdir-$(CONFIG_SECURITY_LOADPIN) += loadpin
David Brazdil0f672f62019-12-10 10:32:29 +000013subdir-$(CONFIG_SECURITY_SAFESETID) += safesetid
14subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000015
16# always enable default capabilities
17obj-y += commoncap.o
18obj-$(CONFIG_MMU) += min_addr.o
19
20# Object file lists
21obj-$(CONFIG_SECURITY) += security.o
22obj-$(CONFIG_SECURITYFS) += inode.o
23obj-$(CONFIG_SECURITY_SELINUX) += selinux/
24obj-$(CONFIG_SECURITY_SMACK) += smack/
25obj-$(CONFIG_AUDIT) += lsm_audit.o
26obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo/
27obj-$(CONFIG_SECURITY_APPARMOR) += apparmor/
28obj-$(CONFIG_SECURITY_YAMA) += yama/
29obj-$(CONFIG_SECURITY_LOADPIN) += loadpin/
David Brazdil0f672f62019-12-10 10:32:29 +000030obj-$(CONFIG_SECURITY_SAFESETID) += safesetid/
31obj-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown/
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000032obj-$(CONFIG_CGROUP_DEVICE) += device_cgroup.o
33
34# Object integrity file lists
35subdir-$(CONFIG_INTEGRITY) += integrity
36obj-$(CONFIG_INTEGRITY) += integrity/