get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/686677/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 686677,
    "url": "http://patchwork.ozlabs.org/api/patches/686677/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/1477423570-15694-4-git-send-email-bryce.ferguson@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": "<1477423570-15694-4-git-send-email-bryce.ferguson@rockwellcollins.com>",
    "list_archive_url": null,
    "date": "2016-10-25T19:26:06",
    "name": "[v13,4/8] util-linux: selinux, audit, and pam support",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": false,
    "hash": "aed715fce499488a1fcb4dc3b909646dffca58e9",
    "submitter": {
        "id": 70083,
        "url": "http://patchwork.ozlabs.org/api/people/70083/?format=api",
        "name": "Bryce Ferguson",
        "email": "bryce.ferguson@rockwellcollins.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/1477423570-15694-4-git-send-email-bryce.ferguson@rockwellcollins.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/686677/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/686677/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 whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3t3NTs26X6z9sD6\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 26 Oct 2016 06:28:01 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id AD75C86488;\n\tTue, 25 Oct 2016 19:27:59 +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 9NzMNEnZPSLM; Tue, 25 Oct 2016 19:27:54 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 4B52092053;\n\tTue, 25 Oct 2016 19:26:51 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 5C3561C1E97\n\tfor <buildroot@lists.busybox.net>;\n\tTue, 25 Oct 2016 19:26:46 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 4A8D192026\n\tfor <buildroot@lists.busybox.net>;\n\tTue, 25 Oct 2016 19:26:46 +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 BM+-5kyLZIdP for <buildroot@lists.busybox.net>;\n\tTue, 25 Oct 2016 19:26: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 BC3EE91FDA\n\tfor <buildroot@buildroot.org>; Tue, 25 Oct 2016 19:26:33 +0000 (UTC)",
            "from ofwgwc03.rockwellcollins.com (HELO\n\tdtulimr01.rockwellcollins.com) ([205.175.225.12])\n\tby secvs01.rockwellcollins.com with ESMTP; 25 Oct 2016 14:26:32 -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 largo.rockwellcollins.com (unknown [192.168.140.76])\n\tby dtulimr01.rockwellcollins.com (Postfix) with ESMTP id AA1ED60266; \n\tTue, 25 Oct 2016 14:26:32 -0500 (CDT)",
        "From": "Bryce Ferguson <bryce.ferguson@rockwellcollins.com>",
        "To": "buildroot@buildroot.org",
        "Date": "Tue, 25 Oct 2016 14:26:06 -0500",
        "Message-Id": "<1477423570-15694-4-git-send-email-bryce.ferguson@rockwellcollins.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1477423570-15694-1-git-send-email-bryce.ferguson@rockwellcollins.com>",
        "References": "<1477423570-15694-1-git-send-email-bryce.ferguson@rockwellcollins.com>",
        "Cc": "Niranjan Reddy <niranjan.reddy@rockwellcollins.com>",
        "Subject": "[Buildroot] [PATCH v13 4/8] util-linux: selinux, audit,\n\tand pam 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": "From: Matt Weber <matthew.weber@rockwellcollins.com>\n\nThis patch adds optional libselinux ,audit and pam support to linux utilities.\n\nSigned-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>\nSigned-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>\nReviewed-by: Samuel Martin <s.martin49@gmail.com>\nSigned-off-by: Niranjan Reddy <niranjan.reddy@rockwellcollins.com>\n\n---\nChanges v12 -> v13:\n  - No changes\n\nChanges v11 -> v12:\n  - No changes\n\nChanges v10 -> v11:\n  - Comment added to explain how the SED expression writes to pam files.\n\nChanges v9 -> v10:\n  - No changes\n\nChanges v8 -> v9:\n  - No changes\n\nChanges v7 -> v8:\n  - No changes\n\nChanges v6 -> v7:\n  - No changes\n\nChanges v5 -> v6:\n  - No changes\n\nChanges v4 -> v5:\n - Update the selinux busybox config to the latest version of busybox\n    (Clayton S.)\n\nChanges v1 -> v4:\n  - Did not exist\n---\n package/util-linux/util-linux.mk | 30 ++++++++++++++++++++++++++++++\n 1 file changed, 30 insertions(+)",
    "diff": "diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk\nindex bd6508c..934fe2f 100644\n--- a/package/util-linux/util-linux.mk\n+++ b/package/util-linux/util-linux.mk\n@@ -63,6 +63,20 @@ endif\n UTIL_LINUX_CONF_ENV += LIBS=\"$(UTIL_LINUX_LIBS)\"\n UTIL_LINUX_MAKE_OPTS += LIBS=\"$(UTIL_LINUX_LIBS)\"\n \n+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)\n+UTIL_LINUX_DEPENDENCIES += libselinux\n+UTIL_LINUX_CONF_OPTS += --with-selinux\n+else\n+UTIL_LINUX_CONF_OPTS += --without-selinux\n+endif\n+\n+ifeq ($(BR2_PACKAGE_AUDIT),y)\n+UTIL_LINUX_DEPENDENCIES += audit\n+UTIL_LINUX_CONF_OPTS += --with-audit\n+else\n+UTIL_LINUX_CONF_OPTS += --without-audit\n+endif\n+\n # Used by cramfs utils\n UTIL_LINUX_DEPENDENCIES += $(if $(BR2_PACKAGE_ZLIB),zlib)\n \n@@ -179,9 +193,25 @@ define UTIL_LINUX_INSTALL_PAMFILES\n \t$(INSTALL) -m 0644 package/util-linux/su.pam \\\n \t\t$(TARGET_DIR)/etc/pam.d/su-l\n endef\n+\n+# Add the required hooks to the pam files if SELinux is enabled\n+# SED expression adds these lines to /etc/pam.d/login,/etc/pam.d/su-l and /etc/pam.d/su files\n+#   session\t\trequired\tpam_selinux.so close\n+#   session\t\trequired\tpam_selinux.so open\n+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)\n+define UTIL_LINUX_FIXUP_PAMFILES\n+\tfor file in login su su-l ; do \\\n+\t\t$(SED) '/selinux/d' $(TARGET_DIR)/etc/pam.d/$${file}; \\\n+\t\t$(SED) '0,/session/s/session/session\t\trequired\tpam_selinux.so close\\nsession/' $(TARGET_DIR)/etc/pam.d/$${file}; \\\n+\t\techo \"session\t\trequired\tpam_selinux.so open\" >> $(TARGET_DIR)/etc/pam.d/$${file}; \\\n+\tdone\n+endef\n+endif\n+\n endif\n \n UTIL_LINUX_POST_INSTALL_TARGET_HOOKS += UTIL_LINUX_INSTALL_PAMFILES\n+UTIL_LINUX_POST_INSTALL_TARGET_HOOKS += UTIL_LINUX_FIXUP_PAMFILES\n \n # Install agetty->getty symlink to avoid breakage when there's no busybox\n ifeq ($(BR2_PACKAGE_UTIL_LINUX_AGETTY),y)\n",
    "prefixes": [
        "v13",
        "4/8"
    ]
}