| Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # |
| 3 | # Makefile for the kernel security code |
| 4 | # |
| 5 | |
| 6 | obj-$(CONFIG_KEYS)+= keys/ |
| 7 | subdir-$(CONFIG_SECURITY_SELINUX)+= selinux |
| Casey Schaufler | e114e47 | 2008-02-04 22:29:50 -0800 | [diff] [blame] | 8 | subdir-$(CONFIG_SECURITY_SMACK)+= smack |
| Kentaro Takeda | 00d7d6f | 2009-02-05 17:18:17 +0900 | [diff] [blame] | 9 | subdir-$(CONFIG_SECURITY_TOMOYO) += tomoyo |
| John Johansen | f9ad1af | 2010-07-29 14:48:08 -0700 | [diff] [blame] | 10 | subdir-$(CONFIG_SECURITY_APPARMOR)+= apparmor |
| Kees Cook | 2d51448 | 2011-12-21 12:17:04 -0800 | [diff] [blame] | 11 | subdir-$(CONFIG_SECURITY_YAMA)+= yama |
| Kees Cook | 9b09155 | 2016-04-20 15:46:28 -0700 | [diff] [blame] | 12 | subdir-$(CONFIG_SECURITY_LOADPIN)+= loadpin |
| Roy Yang | 3154f1f | 2020-06-15 16:48:51 -0700 | [diff] [blame] | 13 | subdir-$(CONFIG_SECURITY_CONTAINER_MONITOR) += container |
| Micah Morton | aeca4e2 | 2019-01-16 07:46:06 -0800 | [diff] [blame] | 14 | subdir-$(CONFIG_SECURITY_SAFESETID) += safesetid |
| Matthew Garrett | 000d388 | 2019-08-19 17:17:39 -0700 | [diff] [blame] | 15 | subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM)+= lockdown |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | |
| Miklos Szeredi | 5915eb5 | 2008-07-03 20:56:05 +0200 | [diff] [blame] | 17 | # always enable default capabilities |
| David Howells | 6e14154 | 2009-12-15 19:27:45 +0000 | [diff] [blame] | 18 | obj-y+= commoncap.o |
| 19 | obj-$(CONFIG_MMU)+= min_addr.o |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | |
| 21 | # Object file lists |
| Casey Schaufler | b1d9e6b | 2015-05-02 15:11:42 -0700 | [diff] [blame] | 22 | obj-$(CONFIG_SECURITY)+= security.o |
| Eric Paris | da31894 | 2008-08-22 11:35:57 -0400 | [diff] [blame] | 23 | obj-$(CONFIG_SECURITYFS)+= inode.o |
| Sam Ravnborg | e0c2de2 | 2014-02-15 22:49:30 +0100 | [diff] [blame] | 24 | obj-$(CONFIG_SECURITY_SELINUX)+= selinux/ |
| 25 | obj-$(CONFIG_SECURITY_SMACK)+= smack/ |
| Thomas Liu | 2bf4969 | 2009-07-14 12:14:09 -0400 | [diff] [blame] | 26 | obj-$(CONFIG_AUDIT)+= lsm_audit.o |
| Sam Ravnborg | e0c2de2 | 2014-02-15 22:49:30 +0100 | [diff] [blame] | 27 | obj-$(CONFIG_SECURITY_TOMOYO)+= tomoyo/ |
| 28 | obj-$(CONFIG_SECURITY_APPARMOR)+= apparmor/ |
| 29 | obj-$(CONFIG_SECURITY_YAMA)+= yama/ |
| Kees Cook | 9b09155 | 2016-04-20 15:46:28 -0700 | [diff] [blame] | 30 | obj-$(CONFIG_SECURITY_LOADPIN)+= loadpin/ |
| Micah Morton | aeca4e2 | 2019-01-16 07:46:06 -0800 | [diff] [blame] | 31 | obj-$(CONFIG_SECURITY_SAFESETID) += safesetid/ |
| Matthew Garrett | 000d388 | 2019-08-19 17:17:39 -0700 | [diff] [blame] | 32 | obj-$(CONFIG_SECURITY_LOCKDOWN_LSM)+= lockdown/ |
| Serge E. Hallyn | 08ce5f1 | 2008-04-29 01:00:10 -0700 | [diff] [blame] | 33 | obj-$(CONFIG_CGROUP_DEVICE)+= device_cgroup.o |
| Roy Yang | 3154f1f | 2020-06-15 16:48:51 -0700 | [diff] [blame] | 34 | obj-$(CONFIG_SECURITY_CONTAINER_MONITOR) += container/ |
| Mimi Zohar | 3323eec9 | 2009-02-04 09:06:58 -0500 | [diff] [blame] | 35 | |
| 36 | # Object integrity file lists |
| Mimi Zohar | f381c27 | 2011-03-09 14:13:22 -0500 | [diff] [blame] | 37 | subdir-$(CONFIG_INTEGRITY)+= integrity |
| Sam Ravnborg | e0c2de2 | 2014-02-15 22:49:30 +0100 | [diff] [blame] | 38 | obj-$(CONFIG_INTEGRITY)+= integrity/ |