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 obj-$(CONFIG_KEYS) += keys/ >> 6 subdir-$(CONFIG_SECURITY_SELINUX) += selinux >> 7 subdir-$(CONFIG_SECURITY_SMACK) += smack >> 8 subdir-$(CONFIG_SECURITY_TOMOYO) += tomoyo 7 9 8 # always enable default capabilities 10 # always enable default capabilities 9 obj-y += com 11 obj-y += commoncap.o 10 obj-$(CONFIG_SECURITY) += lsm << 11 obj-$(CONFIG_MMU) += min 12 obj-$(CONFIG_MMU) += min_addr.o 12 13 13 # Object file lists 14 # Object file lists 14 obj-$(CONFIG_SECURITY) += sec !! 15 obj-$(CONFIG_SECURITY) += security.o capability.o 15 obj-$(CONFIG_SECURITYFS) += ino 16 obj-$(CONFIG_SECURITYFS) += inode.o 16 obj-$(CONFIG_SECURITY_SELINUX) += sel !! 17 # Must precede capability.o in order to stack properly. 17 obj-$(CONFIG_SECURITY_SMACK) += sma !! 18 obj-$(CONFIG_SECURITY_SELINUX) += selinux/built-in.o 18 obj-$(CONFIG_SECURITY) += lsm !! 19 obj-$(CONFIG_SECURITY_SMACK) += smack/built-in.o 19 obj-$(CONFIG_SECURITY_TOMOYO) += tom !! 20 obj-$(CONFIG_AUDIT) += lsm_audit.o 20 obj-$(CONFIG_SECURITY_APPARMOR) += app !! 21 obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo/built-in.o 21 obj-$(CONFIG_SECURITY_YAMA) += yam !! 22 obj-$(CONFIG_SECURITY_ROOTPLUG) += root_plug.o 22 obj-$(CONFIG_SECURITY_LOADPIN) += loa !! 23 obj-$(CONFIG_CGROUP_DEVICE) += device_cgroup.o 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 24 30 # Object integrity file lists 25 # Object integrity file lists 31 obj-$(CONFIG_INTEGRITY) += int !! 26 subdir-$(CONFIG_IMA) += integrity/ima >> 27 obj-$(CONFIG_IMA) += integrity/ima/built-in.o 32 28 33 subdir-$(CONFIG_CCSECURITY) += ccs 29 subdir-$(CONFIG_CCSECURITY) += ccsecurity 34 obj-$(CONFIG_CCSECURITY) += ccs !! 30 obj-$(CONFIG_CCSECURITY) += ccsecurity/built-in.o
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.