landlock: Add object management
[linux-2.6-block.git] / security / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
1da177e4
LT
2#
3# Makefile for the kernel security code
4#
5
6obj-$(CONFIG_KEYS) += keys/
7subdir-$(CONFIG_SECURITY_SELINUX) += selinux
e114e473 8subdir-$(CONFIG_SECURITY_SMACK) += smack
00d7d6f8 9subdir-$(CONFIG_SECURITY_TOMOYO) += tomoyo
f9ad1af5 10subdir-$(CONFIG_SECURITY_APPARMOR) += apparmor
2d514487 11subdir-$(CONFIG_SECURITY_YAMA) += yama
9b091556 12subdir-$(CONFIG_SECURITY_LOADPIN) += loadpin
aeca4e2c 13subdir-$(CONFIG_SECURITY_SAFESETID) += safesetid
000d388e 14subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown
520b7aa0 15subdir-$(CONFIG_BPF_LSM) += bpf
90945448 16subdir-$(CONFIG_SECURITY_LANDLOCK) += landlock
1da177e4 17
5915eb53 18# always enable default capabilities
6e141546
DH
19obj-y += commoncap.o
20obj-$(CONFIG_MMU) += min_addr.o
1da177e4
LT
21
22# Object file lists
b1d9e6b0 23obj-$(CONFIG_SECURITY) += security.o
da31894e 24obj-$(CONFIG_SECURITYFS) += inode.o
e0c2de2b
SR
25obj-$(CONFIG_SECURITY_SELINUX) += selinux/
26obj-$(CONFIG_SECURITY_SMACK) += smack/
b2104ac0 27obj-$(CONFIG_SECURITY) += lsm_audit.o
e0c2de2b
SR
28obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo/
29obj-$(CONFIG_SECURITY_APPARMOR) += apparmor/
30obj-$(CONFIG_SECURITY_YAMA) += yama/
9b091556 31obj-$(CONFIG_SECURITY_LOADPIN) += loadpin/
aeca4e2c 32obj-$(CONFIG_SECURITY_SAFESETID) += safesetid/
000d388e 33obj-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown/
eec8fd02 34obj-$(CONFIG_CGROUPS) += device_cgroup.o
520b7aa0 35obj-$(CONFIG_BPF_LSM) += bpf/
90945448 36obj-$(CONFIG_SECURITY_LANDLOCK) += landlock/
3323eec9
MZ
37
38# Object integrity file lists
f381c272 39subdir-$(CONFIG_INTEGRITY) += integrity
e0c2de2b 40obj-$(CONFIG_INTEGRITY) += integrity/