Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/495234/?format=api
{ "id": 495234, "url": "http://patchwork.ozlabs.org/api/patches/495234/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/1436905227-26937-6-git-send-email-clayton.shotwell@rockwellcollins.com/", "project": { "id": 27, "url": "http://patchwork.ozlabs.org/api/projects/27/?format=api", "name": "Buildroot development", "link_name": "buildroot", "list_id": "buildroot.buildroot.org", "list_email": "buildroot@buildroot.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1436905227-26937-6-git-send-email-clayton.shotwell@rockwellcollins.com>", "list_archive_url": null, "date": "2015-07-14T20:20:17", "name": "[v9,05/15] busybox: selinux support", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "7fefe377a096d3788298d9221a75d89b99be3e2d", "submitter": { "id": 64481, "url": "http://patchwork.ozlabs.org/api/people/64481/?format=api", "name": "Clayton Shotwell", "email": "clayton.shotwell@rockwellcollins.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/1436905227-26937-6-git-send-email-clayton.shotwell@rockwellcollins.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/495234/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/495234/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<buildroot-bounces@busybox.net>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "buildroot@lists.busybox.net" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "buildroot@osuosl.org" ], "Received": [ "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ozlabs.org (Postfix) with ESMTP id 6DE681402AC\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 15 Jul 2015 06:21:08 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id B6490A43BA;\n\tTue, 14 Jul 2015 20:21:07 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id gi-tbaUZK1Mq; Tue, 14 Jul 2015 20:21:05 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 11460A4373;\n\tTue, 14 Jul 2015 20:20:45 +0000 (UTC)", "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 9DA711CE612\n\tfor <buildroot@lists.busybox.net>;\n\tTue, 14 Jul 2015 20:20:41 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 9A36592066\n\tfor <buildroot@lists.busybox.net>;\n\tTue, 14 Jul 2015 20:20:41 +0000 (UTC)", "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id J+uVoxS90mei for <buildroot@lists.busybox.net>;\n\tTue, 14 Jul 2015 20:20:41 +0000 (UTC)", "from secvs01.rockwellcollins.com (secvs01.rockwellcollins.com\n\t[205.175.225.240])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id CD6DC92065\n\tfor <buildroot@buildroot.org>; Tue, 14 Jul 2015 20:20:40 +0000 (UTC)", "from unknown (HELO crulimr02.rockwellcollins.com)\n\t([131.198.26.125])\n\tby secvs01.rockwellcollins.com with ESMTP; 14 Jul 2015 15:20:40 -0500" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-Received": "from thehammer.rockwellcollins.com (unknown [192.168.141.197])\n\tby crulimr02.rockwellcollins.com (Postfix) with ESMTP id 218C7604A6; \n\tTue, 14 Jul 2015 15:20:40 -0500 (CDT)", "From": "Clayton Shotwell <clayton.shotwell@rockwellcollins.com>", "To": "buildroot@buildroot.org", "Date": "Tue, 14 Jul 2015 15:20:17 -0500", "Message-Id": "<1436905227-26937-6-git-send-email-clayton.shotwell@rockwellcollins.com>", "X-Mailer": "git-send-email 1.9.1", "In-Reply-To": "<1436905227-26937-1-git-send-email-clayton.shotwell@rockwellcollins.com>", "References": "<1436905227-26937-1-git-send-email-clayton.shotwell@rockwellcollins.com>", "Cc": "Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,\n\tClayton Shotwell <clayton.shotwell@rockwellcollins.com>", "Subject": "[Buildroot] [PATCH v9 05/15] busybox: selinux support", "X-BeenThere": "buildroot@busybox.net", "X-Mailman-Version": "2.1.18-1", "Precedence": "list", "List-Id": "Discussion and development of buildroot <buildroot.busybox.net>", "List-Unsubscribe": "<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>", "List-Archive": "<http://lists.busybox.net/pipermail/buildroot/>", "List-Post": "<mailto:buildroot@busybox.net>", "List-Help": "<mailto:buildroot-request@busybox.net?subject=help>", "List-Subscribe": "<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "buildroot-bounces@busybox.net", "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>" }, "content": "Add a configure option to enable the SELinux support in the\nbusybox configuration from the Buildroot menuconfig.\n\nSigned-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\nSigned-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>\nSigned-off-by: Matt Weber <matthew.weber@rockwellcollins.com>\nReviewed-by: Samuel Martin <s.martin49@gmail.com>\n\n---\nChanges v8 -> v9:\n - No changes\n\nChanges v7 -> v8:\n - Fixed typos and removed extra line (Suggested by Samuel)\n\nChanges v6 -> v7:\n - No changes\n\nChanges v5 -> v6:\n - Added help text to the SELinux configuration option (Suggested by\n Thomas P. and Samuel)\n\nChanges v4 -> v5:\n - Renamed to follow patch naming convention (Matt W.)\n - Added a dependency on having threads for the busybox SELinux flag to\n ensure it does not cause libselinux to build when threads are not\n available. Also added a select for libselinux to make the linking\n apparent. (Clayton S.)\n - Add dependency on not static libs for libselinux (Clayton S.)\n\nChanges v1 -> v4:\n - Did not exist\n---\n ...ags-strip-non-l-arguments-returned-by-pkg.patch | 28 ++++++++++++++++++++++\n package/busybox/Config.in | 16 +++++++++++++\n package/busybox/busybox.mk | 9 +++++++\n 3 files changed, 53 insertions(+)\n create mode 100644 package/busybox/0008-Makefile.flags-strip-non-l-arguments-returned-by-pkg.patch", "diff": "diff --git a/package/busybox/0008-Makefile.flags-strip-non-l-arguments-returned-by-pkg.patch b/package/busybox/0008-Makefile.flags-strip-non-l-arguments-returned-by-pkg.patch\nnew file mode 100644\nindex 0000000..105626c\n--- /dev/null\n+++ b/package/busybox/0008-Makefile.flags-strip-non-l-arguments-returned-by-pkg.patch\n@@ -0,0 +1,28 @@\n+From 67eb23d2be8aba3c474dac81a15b0fa11e5847b7 Mon Sep 17 00:00:00 2001\n+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\n+Date: Mon, 25 Nov 2013 22:51:53 +0100\n+Subject: [PATCH] Makefile.flags: strip non -l arguments returned by pkg-config\n+\n+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\n+---\n+ Makefile.flags | 4 +++-\n+ 1 file changed, 3 insertions(+), 1 deletion(-)\n+\n+diff --git a/Makefile.flags b/Makefile.flags\n+index 307afa7..885e323 100644\n+--- a/Makefile.flags\n++++ b/Makefile.flags\n+@@ -141,7 +141,9 @@ ifeq ($(CONFIG_SELINUX),y)\n+ SELINUX_PC_MODULES = libselinux libsepol\n+ $(eval $(call pkg_check_modules,SELINUX,$(SELINUX_PC_MODULES)))\n+ CPPFLAGS += $(SELINUX_CFLAGS)\n+-LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=%))\n++LDLIBS += $(if $(SELINUX_LIBS),\\\n++ $(patsubst -l%,%,$(filter -l%,$(SELINUX_LIBS))),\\\n++ $(SELINUX_PC_MODULES:lib%=%))\n+ endif\n+ \n+ ifeq ($(CONFIG_EFENCE),y)\n+-- \n+1.8.1.2\n+\ndiff --git a/package/busybox/Config.in b/package/busybox/Config.in\nindex b3303c0..a80a050 100644\n--- a/package/busybox/Config.in\n+++ b/package/busybox/Config.in\n@@ -41,6 +41,22 @@ comment \"Busybox individual binaries depends on dynamic libraries\"\n \tdepends on BR2_STATIC_LIBS\n \tdepends on !BR2_bfin\n \n+config BR2_PACKAGE_BUSYBOX_SELINUX\n+\tselect BR2_PACKAGE_LIBSELINUX\n+\tdepends on BR2_TOOLCHAIN_HAS_THREADS\n+\tdepends on !BR2_STATIC_LIBS\n+\tbool \"Enable SELinux support\"\n+\thelp\n+\t Enable SELinux support in BusyBox. Please note that depending on\n+\t your BusyBox configuration and the SELinux policy implementation,\n+\t you may want to also enable BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES.\n+\n+\t For instance, if your BusyBox configuration only uses a couple of\n+\t minor BusyBox features, such as simple command line utilities, the\n+\t symlinked version of BusyBox can be used to save space. If BusyBox\n+\t provides more features, such as crond, then individual binaries\n+\t have to be enabled for the SELinux type transitions to occur properly.\n+\n config BR2_PACKAGE_BUSYBOX_WATCHDOG\n \tbool \"Install the watchdog daemon startup script\"\n \thelp\ndiff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk\nindex 4942e75..94f3b47 100644\n--- a/package/busybox/busybox.mk\n+++ b/package/busybox/busybox.mk\n@@ -180,6 +180,14 @@ define BUSYBOX_INSTALL_INDIVIDUAL_BINARIES\n endef\n endif\n \n+ifeq ($(BR2_PACKAGE_BUSYBOX_SELINUX),y)\n+BUSYBOX_DEPENDENCIES += host-pkgconf libselinux libsepol\n+define BUSYBOX_SET_SELINUX\n+\t$(call KCONFIG_ENABLE_OPT,CONFIG_SELINUX,$(BUSYBOX_BUILD_CONFIG))\n+\t$(call KCONFIG_ENABLE_OPT,CONFIG_SELINUXENABLED,$(BUSYBOX_BUILD_CONFIG))\n+endef\n+endif\n+\n define BUSYBOX_INSTALL_LOGGING_SCRIPT\n \tif grep -q CONFIG_SYSLOGD=y $(@D)/.config; then \\\n \t\t$(INSTALL) -m 0755 -D package/busybox/S01logging \\\n@@ -239,6 +247,7 @@ define BUSYBOX_KCONFIG_FIXUP_CMDS\n \t$(BUSYBOX_SET_INIT)\n \t$(BUSYBOX_SET_WATCHDOG)\n \t$(BUSYBOX_CONFIGURE_INDIVIDUAL_BINARIES)\n+\t$(BUSYBOX_SET_SELINUX)\n endef\n \n define BUSYBOX_CONFIGURE_CMDS\n", "prefixes": [ "v9", "05/15" ] }