1 FILESEXTRAPATHS_prepend := "${THISDIR}/linux:"
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 = ""
7 # Kernel config fragment enabling Smack, without making it the default explicitly.
8 SMACK_KERNEL_SRC_URI_yes += "file://smack.cfg"
10 # When added, set Smack as the default LSM.
11 SMACK_DEFAULT_SECURITY_CFG = "file://smack-default-lsm.cfg"
13 # Add it by default, can be overridden by changing this variable here.
14 SMACK_DEFAULT_SECURITY ??= "${SMACK_DEFAULT_SECURITY_CFG}"
15 SMACK_KERNEL_SRC_URI_yes += " ${SMACK_DEFAULT_SECURITY}"
17 SRC_URI_append_with-lsm-smack = "${SMACK_KERNEL_SRC_URI_${IS_KERNEL_RECIPE}}"