2017-11-01 15:07:57 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2005-04-16 15:20:36 -07:00
|
|
|
#
|
|
|
|
|
# Makefile for the kernel security code
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
obj-$(CONFIG_KEYS) += keys/
|
|
|
|
|
subdir-$(CONFIG_SECURITY_SELINUX) += selinux
|
2008-02-04 22:29:50 -08:00
|
|
|
subdir-$(CONFIG_SECURITY_SMACK) += smack
|
2009-02-05 17:18:17 +09:00
|
|
|
subdir-$(CONFIG_SECURITY_TOMOYO) += tomoyo
|
2010-07-29 14:48:08 -07:00
|
|
|
subdir-$(CONFIG_SECURITY_APPARMOR) += apparmor
|
2011-12-21 12:17:04 -08:00
|
|
|
subdir-$(CONFIG_SECURITY_YAMA) += yama
|
2016-04-20 15:46:28 -07:00
|
|
|
subdir-$(CONFIG_SECURITY_LOADPIN) += loadpin
|
2019-01-16 07:46:06 -08:00
|
|
|
subdir-$(CONFIG_SECURITY_SAFESETID) += safesetid
|
2019-08-19 17:17:39 -07:00
|
|
|
subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown
|
2020-03-29 01:43:53 +01:00
|
|
|
subdir-$(CONFIG_BPF_LSM) += bpf
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-07-03 20:56:05 +02:00
|
|
|
# always enable default capabilities
|
2009-12-15 19:27:45 +00:00
|
|
|
obj-y += commoncap.o
|
|
|
|
|
obj-$(CONFIG_MMU) += min_addr.o
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
# Object file lists
|
2015-05-02 15:11:42 -07:00
|
|
|
obj-$(CONFIG_SECURITY) += security.o
|
2008-08-22 11:35:57 -04:00
|
|
|
obj-$(CONFIG_SECURITYFS) += inode.o
|
2014-02-15 22:49:30 +01:00
|
|
|
obj-$(CONFIG_SECURITY_SELINUX) += selinux/
|
|
|
|
|
obj-$(CONFIG_SECURITY_SMACK) += smack/
|
2019-12-10 11:55:41 -05:00
|
|
|
obj-$(CONFIG_SECURITY) += lsm_audit.o
|
2014-02-15 22:49:30 +01:00
|
|
|
obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo/
|
|
|
|
|
obj-$(CONFIG_SECURITY_APPARMOR) += apparmor/
|
|
|
|
|
obj-$(CONFIG_SECURITY_YAMA) += yama/
|
2016-04-20 15:46:28 -07:00
|
|
|
obj-$(CONFIG_SECURITY_LOADPIN) += loadpin/
|
2019-01-16 07:46:06 -08:00
|
|
|
obj-$(CONFIG_SECURITY_SAFESETID) += safesetid/
|
2019-08-19 17:17:39 -07:00
|
|
|
obj-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown/
|
2020-04-03 19:55:28 +02:00
|
|
|
obj-$(CONFIG_CGROUPS) += device_cgroup.o
|
2020-03-29 01:43:53 +01:00
|
|
|
obj-$(CONFIG_BPF_LSM) += bpf/
|
2009-02-04 09:06:58 -05:00
|
|
|
|
|
|
|
|
# Object integrity file lists
|
2011-03-09 14:13:22 -05:00
|
|
|
subdir-$(CONFIG_INTEGRITY) += integrity
|
2014-02-15 22:49:30 +01:00
|
|
|
obj-$(CONFIG_INTEGRITY) += integrity/
|