Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. subdir-$(CONFIG_SECURITY_SAFESETID) += safesetid
  13. subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown
  14. subdir-$(CONFIG_BPF_LSM) += bpf
  15. # always enable default capabilities
  16. obj-y += commoncap.o
  17. obj-$(CONFIG_MMU) += min_addr.o
  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_SECURITY) += 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_SECURITY_SAFESETID) += safesetid/
  29. obj-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown/
  30. obj-$(CONFIG_CGROUPS) += device_cgroup.o
  31. obj-$(CONFIG_BPF_LSM) += bpf/
  32. # Object integrity file lists
  33. subdir-$(CONFIG_INTEGRITY) += integrity
  34. obj-$(CONFIG_INTEGRITY) += integrity/