Loading...
1# 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
13subdir-$(CONFIG_SECURITY_SAFESETID) += safesetid
14subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown
15subdir-$(CONFIG_BPF_LSM) += bpf
16subdir-$(CONFIG_SECURITY_LANDLOCK) += landlock
17
18# always enable default capabilities
19obj-y += commoncap.o
20obj-$(CONFIG_MMU) += min_addr.o
21
22# Object file lists
23obj-$(CONFIG_SECURITY) += security.o
24obj-$(CONFIG_SECURITYFS) += inode.o
25obj-$(CONFIG_SECURITY_SELINUX) += selinux
26obj-$(CONFIG_SECURITY_SMACK) += smack
27obj-$(CONFIG_SECURITY) += lsm_audit.o
28obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo
29obj-$(CONFIG_SECURITY_APPARMOR) += apparmor
30obj-$(CONFIG_SECURITY_YAMA) += yama
31obj-$(CONFIG_SECURITY_LOADPIN) += loadpin
32obj-$(CONFIG_SECURITY_SAFESETID) += safesetid
33obj-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown
34obj-$(CONFIG_CGROUPS) += device_cgroup.o
35obj-$(CONFIG_BPF_LSM) += bpf
36obj-$(CONFIG_SECURITY_LANDLOCK) += landlock
37
38# Object integrity file lists
39subdir-$(CONFIG_INTEGRITY) += integrity
40obj-$(CONFIG_INTEGRITY) += integrity
1#
2# Makefile for the kernel security code
3#
4
5obj-$(CONFIG_KEYS) += keys
6subdir-$(CONFIG_SECURITY_SELINUX) += selinux
7subdir-$(CONFIG_SECURITY_SMACK) += smack
8subdir-$(CONFIG_SECURITY_TOMOYO) += tomoyo
9subdir-$(CONFIG_SECURITY_APPARMOR) += apparmor
10subdir-$(CONFIG_SECURITY_YAMA) += yama
11
12# always enable default capabilities
13obj-y += commoncap.o
14obj-$(CONFIG_MMU) += min_addr.o
15
16# Object file lists
17obj-$(CONFIG_SECURITY) += security.o capability.o
18obj-$(CONFIG_SECURITYFS) += inode.o
19# Must precede capability.o in order to stack properly.
20obj-$(CONFIG_SECURITY_SELINUX) += selinux/built-in.o
21obj-$(CONFIG_SECURITY_SMACK) += smack/built-in.o
22obj-$(CONFIG_AUDIT) += lsm_audit.o
23obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo/built-in.o
24obj-$(CONFIG_SECURITY_APPARMOR) += apparmor/built-in.o
25obj-$(CONFIG_SECURITY_YAMA) += yama/built-in.o
26obj-$(CONFIG_CGROUP_DEVICE) += device_cgroup.o
27
28# Object integrity file lists
29subdir-$(CONFIG_INTEGRITY) += integrity
30obj-$(CONFIG_INTEGRITY) += integrity/built-in.o