cbf6567e013759b7d5cce65b81251ae6f8d392ae
[AGL/meta-agl.git] / meta-app-framework / recipes-kernel / linux / linux-appfw.inc
1 FILESEXTRAPATHS_prepend := "${THISDIR}/linux:"
2
3 IS_KERNEL_RECIPE := "${@bb.data.inherits_class('kernel', d) and 'yes' or 'no'}"
4 SMACK_KERNEL_SRC_URI_no = ""
5 SMACK_KERNEL_SRC_URI_yes = ""
6
7 # Kernel config fragment enabling Smack, without making it the default explicitly.
8 SMACK_KERNEL_SRC_URI_yes += "file://smack.cfg"
9
10 # When added, set Smack as the default LSM.
11 SMACK_DEFAULT_SECURITY_CFG = "file://smack-default-lsm.cfg"
12 # Add it by default, can be overridden by changing this variable here.
13 SMACK_DEFAULT_SECURITY ??= "${SMACK_DEFAULT_SECURITY_CFG}"
14 SMACK_KERNEL_SRC_URI_yes += " ${SMACK_DEFAULT_SECURITY}"
15
16 # add audit.cfg
17 SMACK_KERNEL_SRC_URI_yes += " file://audit.cfg"
18
19
20 SRC_URI_append_with-lsm-smack = "${SMACK_KERNEL_SRC_URI_${IS_KERNEL_RECIPE}}"
21