secilc: new package
PATCH 1/1 secilc: new package
The SELinux CIL Compiler is a compiler that converts the CIL language as described on the CIL design wiki into a kernel binary policy file.
http://github.com/SELinuxProject/cil/wiki/
In addition, the default makefile always tries to build the man pages and there is no way to not build them. If we try to build them, it would require the dependency xmlto. As such, I have included a small patch that removes the man page building step from the makefile.
--- package/Config.in | 1 + ...01-remove-man-page-building-from-makefile.patch | 49 ++++++++++++++++++++++ package/secilc/Config.in | 16 +++++++ package/secilc/secilc.hash | 2 + package/secilc/secilc.mk | 21 ++++++++++ 5 files changed, 89 insertions(+) create mode 100644 package/secilc/0001-remove-man-page-building-from-makefile.patch create mode 100644 package/secilc/Config.in create mode 100644 package/secilc/secilc.hash create mode 100644 package/secilc/secilc.mk
package/Config.in +1 -0
@@ -1707,6 +1707,7 @@ endmenu menu "Security" source "package/policycoreutils/Config.in" + source "package/secilc/Config.in" source "package/setools/Config.in" endmenu
package/secilc/0001-remove-man-page-building-from-makefile.patch new file +49 -0
49 lines not on this page · raw message
package/secilc/Config.in new file +16 -0
@@ -0,0 +1,16 @@ +comment "secilc needs a glibc toolchain w/ threads, dynamic library" + depends on !BR2_arc + depends on !BR2_TOOLCHAIN_USES_GLIBC || \ + !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS + +config BR2_PACKAGE_SECILC + bool "secilc" + select BR2_PACKAGE_LIBSEPOL + help + The SELinux CIL Compiler is a compiler that converts the CIL language as + described on the CIL design wiki into a kernel binary policy file. + Please see the CIL Design Wiki at: + http://github.com/SELinuxProject/cil/wiki/ + for more information about the goals and features on the CIL language. + + http://selinuxproject.org/page/Main_Page
package/secilc/secilc.hash new file +2 -0
@@ -0,0 +1,2 @@ +# https://github.com/SELinuxProject/selinux/wiki/Releases +sha256 a84838c15bb7b0141238b48294b15ff0e1618107f547541a0067d1ddabcc9502 secilc-2.6.tar.gz
package/secilc/secilc.mk new file +20 -0
@@ -0,0 +1,20 @@ +################################################################################ +# +# secilc +# +################################################################################ + +SECILC_VERSION = 2.6 +SECILC_SITE = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014 +SECILC_LICENSE = FreeBSD +SECILC_LICENSE_FILES = COPYING + +define SECILC_BUILD_CMDS + $(MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR) +endef + +define SECILC_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR) install +endef + +$(eval $(generic-package))
Signature · 1 line
2.9.3
PATCH 1/1 secilc: new package
Hello,
Quoted 10 lines · Adam Duskett
The SELinux CIL Compiler is a compiler that converts the CIL language as described on the CIL design wiki into a kernel binary policy file.
http://github.com/SELinuxProject/cil/wiki/In addition, the default makefile always tries to build the man pages and there is no way to not build them. If we try to build them, it would require the dependency xmlto. As such, I have included a small patch that removes the man page building step from the makefile.
Signed-off-by Adam Duskett <[email protected]>
I am not very familiar with SELinux. However, should this compiler really be a target package? Does it make sense to use it on the target? In the context of an embedded system, wouldn't be the policy be compiled on the host, and installed "pre-compiled" on the target? If that's the case, then secilc should be a host package, not a target package.
Could you clarify how secilc is meant to be used, and why you've chosen to implement it as a target package?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com