1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for the kernel security code
6 obj-
$(CONFIG_KEYS
) += keys
/
7 subdir-
$(CONFIG_SECURITY_SELINUX
) += selinux
8 subdir-
$(CONFIG_SECURITY_SMACK
) += smack
9 subdir-
$(CONFIG_SECURITY_TOMOYO
) += tomoyo
10 subdir-
$(CONFIG_SECURITY_APPARMOR
) += apparmor
11 subdir-
$(CONFIG_SECURITY_YAMA
) += yama
12 subdir-
$(CONFIG_SECURITY_LOADPIN
) += loadpin
13 subdir-
$(CONFIG_SECURITY_SAFESETID
) += safesetid
14 subdir-
$(CONFIG_SECURITY_LOCKDOWN_LSM
) += lockdown
15 subdir-
$(CONFIG_BPF_LSM
) += bpf
16 subdir-
$(CONFIG_SECURITY_LANDLOCK
) += landlock
18 # always enable default capabilities
20 obj-
$(CONFIG_MMU
) += min_addr.o
23 obj-
$(CONFIG_SECURITY
) += security.o
24 obj-
$(CONFIG_SECURITYFS
) += inode.o
25 obj-
$(CONFIG_SECURITY_SELINUX
) += selinux
/
26 obj-
$(CONFIG_SECURITY_SMACK
) += smack
/
27 obj-
$(CONFIG_SECURITY
) += lsm_audit.o
28 obj-
$(CONFIG_SECURITY_TOMOYO
) += tomoyo
/
29 obj-
$(CONFIG_SECURITY_APPARMOR
) += apparmor
/
30 obj-
$(CONFIG_SECURITY_YAMA
) += yama
/
31 obj-
$(CONFIG_SECURITY_LOADPIN
) += loadpin
/
32 obj-
$(CONFIG_SECURITY_SAFESETID
) += safesetid
/
33 obj-
$(CONFIG_SECURITY_LOCKDOWN_LSM
) += lockdown
/
34 obj-
$(CONFIG_CGROUPS
) += device_cgroup.o
35 obj-
$(CONFIG_BPF_LSM
) += bpf
/
36 obj-
$(CONFIG_SECURITY_LANDLOCK
) += landlock
/
38 # Object integrity file lists
39 subdir-
$(CONFIG_INTEGRITY
) += integrity
40 obj-
$(CONFIG_INTEGRITY
) += integrity
/