1 # SPDX-License-Identifier: GPL-2.0 << 2 # 1 # 3 # Makefile for the kernel security code 2 # Makefile for the kernel security code 4 # 3 # 5 4 6 obj-$(CONFIG_KEYS) += key !! 5 subdir-$(CONFIG_SECURITY_SELINUX) += selinux 7 6 8 # always enable default capabilities !! 7 # if we don't select a security model, use the default capabilities 9 obj-y += com !! 8 ifneq ($(CONFIG_SECURITY),y) 10 obj-$(CONFIG_SECURITY) += lsm !! 9 obj-y += commoncap.o capability.o 11 obj-$(CONFIG_MMU) += min !! 10 endif 12 11 13 # Object file lists 12 # Object file lists 14 obj-$(CONFIG_SECURITY) += sec !! 13 obj-$(CONFIG_SECURITY) += security.o dummy.o 15 obj-$(CONFIG_SECURITYFS) += ino !! 14 # Must precede capability.o in order to stack properly. 16 obj-$(CONFIG_SECURITY_SELINUX) += sel !! 15 ifeq ($(CONFIG_SECURITY_SELINUX),y) 17 obj-$(CONFIG_SECURITY_SMACK) += sma !! 16 obj-$(CONFIG_SECURITY_SELINUX) += selinux/built-in.o 18 obj-$(CONFIG_SECURITY) += lsm !! 17 endif 19 obj-$(CONFIG_SECURITY_TOMOYO) += tom !! 18 obj-$(CONFIG_SECURITY_CAPABILITIES) += commoncap.o capability.o 20 obj-$(CONFIG_SECURITY_APPARMOR) += app !! 19 obj-$(CONFIG_SECURITY_ROOTPLUG) += commoncap.o root_plug.o 21 obj-$(CONFIG_SECURITY_YAMA) += yam << 22 obj-$(CONFIG_SECURITY_LOADPIN) += loa << 23 obj-$(CONFIG_SECURITY_SAFESETID) += safe << 24 obj-$(CONFIG_SECURITY_LOCKDOWN_LSM) += loc << 25 obj-$(CONFIG_CGROUPS) += dev << 26 obj-$(CONFIG_BPF_LSM) += bpf << 27 obj-$(CONFIG_SECURITY_LANDLOCK) += lan << 28 obj-$(CONFIG_SECURITY_IPE) += ipe << 29 << 30 # Object integrity file lists << 31 obj-$(CONFIG_INTEGRITY) += int << 32 << 33 subdir-$(CONFIG_CCSECURITY) += ccs << 34 obj-$(CONFIG_CCSECURITY) += ccs <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.