Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/811267/?format=api
{ "id": 811267, "url": "http://patchwork.ozlabs.org/api/patches/811267/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20170908001204.18174-2-mhalcrow@google.com/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/projects/8/?format=api", "name": "Linux ext4 filesystem development", "link_name": "linux-ext4", "list_id": "linux-ext4.vger.kernel.org", "list_email": "linux-ext4@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170908001204.18174-2-mhalcrow@google.com>", "list_archive_url": null, "date": "2017-09-08T00:12:02", "name": "[1/3] ext4 crypto: Return -EXDEV for link, rename, and cross-rename between incompat contexts", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": false, "hash": "6723976b65c17ed71027c203b49e30f16947fcef", "submitter": { "id": 64496, "url": "http://patchwork.ozlabs.org/api/people/64496/?format=api", "name": "Michael Halcrow", "email": "mhalcrow@google.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20170908001204.18174-2-mhalcrow@google.com/mbox/", "series": [ { "id": 2077, "url": "http://patchwork.ozlabs.org/api/series/2077/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=2077", "date": "2017-09-08T00:12:01", "name": "fscrypto: Return -EXDEV for link, rename, and cross-rename between incompat contexts", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/2077/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/811267/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/811267/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-ext4-owner@vger.kernel.org>", "X-Original-To": "patchwork-incoming@ozlabs.org", "Delivered-To": "patchwork-incoming@ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-ext4-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"X+8QJKUG\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xpHnv3sPlz9sMN\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 8 Sep 2017 10:12:35 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752752AbdIHAMd (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 7 Sep 2017 20:12:33 -0400", "from mail-pf0-f178.google.com ([209.85.192.178]:34573 \"EHLO\n\tmail-pf0-f178.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752549AbdIHAMc (ORCPT\n\t<rfc822; linux-ext4@vger.kernel.org>); Thu, 7 Sep 2017 20:12:32 -0400", "by mail-pf0-f178.google.com with SMTP id e1so1928028pfk.1\n\tfor <linux-ext4@vger.kernel.org>;\n\tThu, 07 Sep 2017 17:12:32 -0700 (PDT)", "from mhalcrow-linux.kir.corp.google.com ([100.66.175.61])\n\tby smtp.gmail.com with ESMTPSA id\n\td25sm1007805pfb.1.2017.09.07.17.12.31\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 07 Sep 2017 17:12:31 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=google.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=p/JV/GCGMlQrRMcB4xRDJuCDYFD95LtSDYEi9esBWvE=;\n\tb=X+8QJKUGY7vzJmz1iJqV7GgxdVNqS9/WTdbYgoM0ccLCQ8WCb22kSXO2NIEoqeWp1V\n\tbiRx0eMrH2fcv59BcrJEBptKQ6VuNa1ffqzmdbHdoRNgvcU3FP8GHtAz/tU3JSuH4bog\n\ty5G6a9uEpSaija1ypRMP1gFX0B/K7uUX8FRAGpAZemGkFBMIRh2Hhl9/oBSxRCvtNZB0\n\tAYlk0WsvRwkH2QKr57dF34YQkFjrkhSMD2gD+DzdE+Tlmwong3syLfRatU5W5LNELlLz\n\t7Mrk3Z01AXfJvr7TZrF9F2QvwAIYykMHw/bY7r2yoO0faf5hu5BT/dEaIp4EJzMzqEKF\n\tDBNg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=p/JV/GCGMlQrRMcB4xRDJuCDYFD95LtSDYEi9esBWvE=;\n\tb=haDEUxqcLNe0Jz2tAIu7Xg8r7NKmbjHxIV4r1Hs3wfIXsWyIINXP2t7jC9WkL9TbxF\n\tKAvmtPDucoKBLb2jPxvKkfTqcyFuIQYqtapeb/rk5jCNnwxYafJhJaWTduhRWKtFM9P/\n\tw171cf7izWrbZaf9KurXC+S9+6aWNtTq+ZYhjHmIrHfsFzjUzf+8+WFQMV5gyEerB7fz\n\t46h0d5Y0pYffjKlOm7c6Jx8A1AJEj25XjFQWKB1Gv9YAr9L2v1CUdJg5Lfjr/yoU8a3I\n\tUcHRtOqzoy6p/bkRzisw/NKSkA71EPuS951fpm7rdPV+zfgu8cI6e/PZ1u3vdnMWPths\n\tZRnA==", "X-Gm-Message-State": "AHPjjUiBmPjRnti41YWXKvDO4q7WFqrCqF2sqLL0wwgyoWp2ssRWcEgE\n\tBfsJoakClINKcbp49X0Phg==", "X-Google-Smtp-Source": "ADKCNb7gVRvszoGixNODZzDTX4Rg+1Ssu6aS33fYta90PO6l576fJYafIE3T8CDNkWqEoCl4XzYMoA==", "X-Received": "by 10.98.236.81 with SMTP id k78mr1227570pfh.336.1504829551886; \n\tThu, 07 Sep 2017 17:12:31 -0700 (PDT)", "From": "Michael Halcrow <mhalcrow@google.com>", "To": "linux-fscrypt@vger.kernel.org", "Cc": "linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,\n\ttytso@mit.edu, linux-f2fs-devel@lists.sourceforge.net,\n\tlinux-mtd@lists.infradead.org", "Subject": "[PATCH 1/3] ext4 crypto: Return -EXDEV for link, rename,\n\tand cross-rename between incompat contexts", "Date": "Thu, 7 Sep 2017 17:12:02 -0700", "Message-Id": "<20170908001204.18174-2-mhalcrow@google.com>", "X-Mailer": "git-send-email 2.14.1.581.gf28d330327-goog", "In-Reply-To": "<20170908001204.18174-1-mhalcrow@google.com>", "References": "<20170908001204.18174-1-mhalcrow@google.com>", "Sender": "linux-ext4-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<linux-ext4.vger.kernel.org>", "X-Mailing-List": "linux-ext4@vger.kernel.org" }, "content": "Gives user space the opportunity to fall back to copy-and-delete.\n\nSigned-off-by: Michael Halcrow <mhalcrow@google.com>\n---\n fs/ext4/namei.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c\nindex c1cf020d1889..3c493bc4273d 100644\n--- a/fs/ext4/namei.c\n+++ b/fs/ext4/namei.c\n@@ -3223,7 +3223,7 @@ static int ext4_link(struct dentry *old_dentry,\n \t\treturn -EMLINK;\n \tif (ext4_encrypted_inode(dir) &&\n \t\t\t!fscrypt_has_permitted_context(dir, inode))\n-\t\treturn -EPERM;\n+\t\treturn -EXDEV;\n \n if ((ext4_test_inode_flag(dir, EXT4_INODE_PROJINHERIT)) &&\n \t (!projid_eq(EXT4_I(dir)->i_projid,\n@@ -3552,7 +3552,7 @@ static int ext4_rename(struct inode *old_dir, struct dentry *old_dentry,\n \tif ((old.dir != new.dir) &&\n \t ext4_encrypted_inode(new.dir) &&\n \t !fscrypt_has_permitted_context(new.dir, old.inode)) {\n-\t\tretval = -EPERM;\n+\t\tretval = -EXDEV;\n \t\tgoto end_rename;\n \t}\n \n@@ -3732,7 +3732,7 @@ static int ext4_cross_rename(struct inode *old_dir, struct dentry *old_dentry,\n \t (old_dir != new_dir) &&\n \t (!fscrypt_has_permitted_context(new_dir, old.inode) ||\n \t !fscrypt_has_permitted_context(old_dir, new.inode)))\n-\t\treturn -EPERM;\n+\t\treturn -EXDEV;\n \n \tif ((ext4_test_inode_flag(new_dir, EXT4_INODE_PROJINHERIT) &&\n \t !projid_eq(EXT4_I(new_dir)->i_projid,\n", "prefixes": [ "1/3" ] }