Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Makefile for the kernel security code
  4. #
  5. obj-$(CONFIG_KEYS) += keys/
  6. subdir-$(CONFIG_SECURITY_SELINUX) += selinux
  7. subdir-$(CONFIG_SECURITY_SMACK) += smack
  8. subdir-$(CONFIG_SECURITY_TOMOYO) += tomoyo
  9. subdir-$(CONFIG_SECURITY_APPARMOR) += apparmor
  10. subdir-$(CONFIG_SECURITY_YAMA) += yama
  11. subdir-$(CONFIG_SECURITY_LOADPIN) += loadpin
  12. # always enable default capabilities
  13. obj-y += commoncap.o
  14. obj-$(CONFIG_MMU) += min_addr.o
  15. # Object file lists
  16. obj-$(CONFIG_SECURITY) += security.o
  17. obj-$(CONFIG_SECURITYFS) += inode.o
  18. obj-$(CONFIG_SECURITY_SELINUX) += selinux/
  19. obj-$(CONFIG_SECURITY_SMACK) += smack/
  20. obj-$(CONFIG_AUDIT) += lsm_audit.o
  21. obj-$(CONFIG_SECURITY_TOMOYO) += tomoyo/
  22. obj-$(CONFIG_SECURITY_APPARMOR) += apparmor/
  23. obj-$(CONFIG_SECURITY_YAMA) += yama/
  24. obj-$(CONFIG_SECURITY_LOADPIN) += loadpin/
  25. obj-$(CONFIG_CGROUP_DEVICE) += device_cgroup.o
  26. # Object integrity file lists
  27. subdir-$(CONFIG_INTEGRITY) += integrity
  28. obj-$(CONFIG_INTEGRITY) += integrity/