$(call KCONFIG_ENABLE_OPT,CONFIG_AUTOFS4_FS,$(@D)/.config)
$(call KCONFIG_ENABLE_OPT,CONFIG_TMPFS_POSIX_ACL,$(@D)/.config)
$(call KCONFIG_ENABLE_OPT,CONFIG_TMPFS_POSIX_XATTR,$(@D)/.config))
+ $(if $(BR2_PACKAGE_SMACK),
+ $(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY,$(@D)/.config)
+ $(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY_SMACK,$(@D)/.config)
+ $(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY_NETWORK,$(@D)/.config))
$(if $(BR2_LINUX_KERNEL_APPENDED_DTB),
$(call KCONFIG_ENABLE_OPT,CONFIG_ARM_APPENDED_DTB,$(@D)/.config))
yes '' | $(TARGET_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) oldconfig
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
source "package/rsyslog/Config.in"
endif
+source "package/smack/Config.in"
source "package/supervisor/Config.in"
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
source "package/sysklogd/Config.in"
--- /dev/null
+config BR2_PACKAGE_SMACK
+ bool "smack"
+ depends on !BR2_PREFER_STATIC_LIB # dlfcn.h
+ help
+ User space programs and libraries for SMACK.
+
+ SMACK stands for Simplified Mandatory Access Control Kernel.
+ It is a Linux Security Module which provides a Mandatory Access
+ Control mechanism, aimed towards simplicity.
+
+ This package provides a library which allows applications to work
+ with SMACK and tools to load/unload rules from the kernel, as well
+ as query the policy.
+
+ SMACK requires the following kernel options to be enabled:
+
+ - CONFIG_SECURITY
+ - CONFIG_SECURITY_SMACK
+ - CONFIG_SECURITY_NETWORK
+
+ These options will be automatically enabled by Buildroot if it is
+ responsible for building the kernel. Otherwise, if you are building
+ your kernel outside of Buildroot, make sure these options are
+ enabled.
+
+ To activate SMACK, do not forget to add "security=smack" to your
+ kernel command line.
+
+ https://github.com/smack-team/smack
+
+comment "smack needs a toolchain w/ dynamic library"
+ depends on BR2_PREFER_STATIC_LIB
--- /dev/null
+################################################################################
+#
+# smack
+#
+################################################################################
+
+SMACK_VERSION = 1.0.4
+SMACK_SITE = $(call github,smack-team,smack,v$(SMACK_VERSION))
+SMACK_LICENSE = LGPLv2.1
+SMACK_LICENSE_FILES = COPYING
+SMACK_INSTALL_STAGING = YES
+SMACK_DEPENDENCIES = host-pkgconf
+
+# Sources from github, no configure script included.
+SMACK_AUTORECONF = YES
+
+$(eval $(autotools-package))