diff options
author | Armin Kuster <akuster808@gmail.com> | 2016-10-25 12:23:56 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2016-11-10 13:34:46 -0800 |
commit | b9f288581d094218c6d7ffc6cfa8986d1e44358c (patch) | |
tree | 7d52ecf00175a0327bbaf7ecd3948b1a588f4e1f /recipes-kernel/linux | |
parent | 5d545800ba69e877b5ca93b6d32e6b2b085cc01f (diff) | |
download | meta-security-b9f288581d094218c6d7ffc6cfa8986d1e44358c.tar.gz |
smack kernel: add smack kernel config fragments
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-kernel/linux')
-rw-r--r-- | recipes-kernel/linux/linux-yocto-4.8/smack-default-lsm.cfg | 2 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto-4.8/smack.cfg | 8 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto_4.8.bbappend | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-yocto-4.8/smack-default-lsm.cfg b/recipes-kernel/linux/linux-yocto-4.8/smack-default-lsm.cfg new file mode 100644 index 0000000..b5c4845 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-4.8/smack-default-lsm.cfg | |||
@@ -0,0 +1,2 @@ | |||
1 | CONFIG_DEFAULT_SECURITY="smack" | ||
2 | CONFIG_DEFAULT_SECURITY_SMACK=y | ||
diff --git a/recipes-kernel/linux/linux-yocto-4.8/smack.cfg b/recipes-kernel/linux/linux-yocto-4.8/smack.cfg new file mode 100644 index 0000000..62f465a --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-4.8/smack.cfg | |||
@@ -0,0 +1,8 @@ | |||
1 | CONFIG_IP_NF_SECURITY=m | ||
2 | CONFIG_IP6_NF_SECURITY=m | ||
3 | CONFIG_EXT2_FS_SECURITY=y | ||
4 | CONFIG_EXT3_FS_SECURITY=y | ||
5 | CONFIG_EXT4_FS_SECURITY=y | ||
6 | CONFIG_SECURITY=y | ||
7 | CONFIG_SECURITY_SMACK=y | ||
8 | CONFIG_TMPFS_XATTR=y | ||
diff --git a/recipes-kernel/linux/linux-yocto_4.8.bbappend b/recipes-kernel/linux/linux-yocto_4.8.bbappend index 0e6960e..048e8fd 100644 --- a/recipes-kernel/linux/linux-yocto_4.8.bbappend +++ b/recipes-kernel/linux/linux-yocto_4.8.bbappend | |||
@@ -5,3 +5,8 @@ SRC_URI += "\ | |||
5 | ${@bb.utils.contains('DISTRO_FEATURES', 'tpm', ' file://tpm.cfg', '', d)} \ | 5 | ${@bb.utils.contains('DISTRO_FEATURES', 'tpm', ' file://tpm.cfg', '', d)} \ |
6 | ${@bb.utils.contains('DISTRO_FEATURES', 'tpm', ' file://tpm.scc', '', d)} \ | 6 | ${@bb.utils.contains('DISTRO_FEATURES', 'tpm', ' file://tpm.scc', '', d)} \ |
7 | " | 7 | " |
8 | |||
9 | SRC_URI += "\ | ||
10 | ${@bb.utils.contains('DISTRO_FEATURES', 'smack', ' file://smack.cfg', '', d)} \ | ||
11 | ${@bb.utils.contains('DISTRO_FEATURES', 'smack', ' file://smack-default-lsm.cfg', '', d)} \ | ||
12 | " | ||