]>
Commit | Line | Data |
---|---|---|
1 | # SPDX-License-Identifier: GPL-2.0 | |
2 | # | |
3 | # Makefile for the kernel security code | |
4 | # | |
5 | ||
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 | ||
14 | # always enable default capabilities | |
15 | obj-y += commoncap.o | |
16 | obj-$(CONFIG_MMU) += min_addr.o | |
17 | ||
18 | # Object file lists | |
19 | obj-$(CONFIG_SECURITY) += security.o | |
20 | obj-$(CONFIG_SECURITYFS) += inode.o | |
21 | obj-$(CONFIG_SECURITY_SELINUX) += selinux/ | |
22 | obj-$(CONFIG_SECURITY_SMACK) += smack/ | |
23 | obj-$(CONFIG_AUDIT) += lsm_audit.o | |
24 | obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo/ | |
25 | obj-$(CONFIG_SECURITY_APPARMOR) += apparmor/ | |
26 | obj-$(CONFIG_SECURITY_YAMA) += yama/ | |
27 | obj-$(CONFIG_SECURITY_LOADPIN) += loadpin/ | |
28 | obj-$(CONFIG_CGROUP_DEVICE) += device_cgroup.o | |
29 | ||
30 | # Object integrity file lists | |
31 | subdir-$(CONFIG_INTEGRITY) += integrity | |
32 | obj-$(CONFIG_INTEGRITY) += integrity/ | |
33 | ||
34 | # Allow the kernel to be locked down | |
35 | obj-$(CONFIG_LOCK_DOWN_KERNEL) += lock_down.o |