Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/816553/?format=api
{ "id": 816553, "url": "http://patchwork.ozlabs.org/api/patches/816553/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20170920224605.22030-23-ebiggers3@gmail.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": "<20170920224605.22030-23-ebiggers3@gmail.com>", "list_archive_url": null, "date": "2017-09-20T22:46:02", "name": "[22/25] ubifs: switch to fscrypt_prepare_link()", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": true, "hash": "6dd9b3e45dcdcea00997059dbc7ed0df3e059a45", "submitter": { "id": 65202, "url": "http://patchwork.ozlabs.org/api/people/65202/?format=api", "name": "Eric Biggers", "email": "ebiggers3@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20170920224605.22030-23-ebiggers3@gmail.com/mbox/", "series": [ { "id": 4249, "url": "http://patchwork.ozlabs.org/api/series/4249/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=4249", "date": "2017-09-20T22:45:40", "name": "fscrypt: add some higher-level helper functions", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/4249/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/816553/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/816553/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=gmail.com header.i=@gmail.com\n\theader.b=\"V05ytSsS\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyFHw5WsYz9sRV\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 21 Sep 2017 08:47:40 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752085AbdITWrh (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 20 Sep 2017 18:47:37 -0400", "from mail-pf0-f195.google.com ([209.85.192.195]:33240 \"EHLO\n\tmail-pf0-f195.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751973AbdITWrP (ORCPT\n\t<rfc822; linux-ext4@vger.kernel.org>); Wed, 20 Sep 2017 18:47:15 -0400", "by mail-pf0-f195.google.com with SMTP id h4so1728702pfk.0;\n\tWed, 20 Sep 2017 15:47:15 -0700 (PDT)", "from ebiggers-linuxstation.kir.corp.google.com ([100.66.174.81])\n\tby smtp.gmail.com with ESMTPSA id j2sm6249pgn.26.2017.09.20.15.47.14\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 20 Sep 2017 15:47:14 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=5PybDI8cOBLVG5Z56DnOikm/sdc+J5uxv9MOaClgZv8=;\n\tb=V05ytSsSDj5vTsHc+JjgI6Dh20+zZvEoYZwWXLhmSXtS4/SYb1cyTTv3IYBCsk8C+s\n\tcy9JmacRCKl1oUloYgqIA5fHhpQdjvi4tovsIqgGhUURQqpbzDLprFO19xIQwNmEX3Bi\n\tWgdmvJyQCfs49p/BbzyPTFbX3FOXYwegwgQJQDXXgddjXC7QbI5MVNK+pn+kDiCuTKlC\n\tPnsfS5cMT+LTumsW1+fTSCiC6mOQQCyhcfNTItgbiVjLBPSI8njYRrIvoekpI1DaPlRw\n\tfd9NHeqi1AHQVc3PHZt+EVb7f3VogdsNeemX05J91iqdoDqzbWZKckNGjSVpVWeD/pXb\n\t7IWw==", "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=5PybDI8cOBLVG5Z56DnOikm/sdc+J5uxv9MOaClgZv8=;\n\tb=YIZJfoaSiFmNcHo0p01CD/tjPxiFKjkJs+We8GPPWTloro3Tl1bRHyofwmMPtCmAw3\n\tMfbz/JWeKyjjqd7JJWkHF2cXoSMZgMycnJ0rnHeyhEkB6swE291vCBgo1Rs45isXZiZo\n\tCbPOeXaI32NnYzoKVlP8NypelbD/NgmqY6xdFSyicVwtb9WBrXfrH+WsCcol0hAuAqEx\n\tsAeuvptpZ1vEJVIYptVLFcAO6EayycphenAddFL1VqHvDRu6WhoHIQ/oBCpcFbhmOXIt\n\tFayt3Ud3cricmRQshHVFvA857pFs/huUfm+uYZ7mCZ2BjM5MIT2mUFpWraH75r142eWw\n\tDQlg==", "X-Gm-Message-State": "AHPjjUgNE+97L13wmOSNmcCL6arm+SyQEl4OOEXVRh+9ory+Dm9pa3pt\n\t9lH8vE1dR4fK/D/uZhsVZ4URs+BGkK8=", "X-Google-Smtp-Source": "AOwi7QBhgnei7emHNPiDdv42pXNMtV8cAULQVh4gYzVxNsjQAaDxxn8QVvVoll8R84v6AleUqXZ5ig==", "X-Received": "by 10.84.211.36 with SMTP id b33mr3625976pli.47.1505947635030;\n\tWed, 20 Sep 2017 15:47:15 -0700 (PDT)", "From": "Eric Biggers <ebiggers3@gmail.com>", "To": "linux-fscrypt@vger.kernel.org", "Cc": "linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,\n\tlinux-f2fs-devel@lists.sourceforge.net,\n\tlinux-mtd@lists.infradead.org, \"Theodore Y . Ts'o\" <tytso@mit.edu>,\n\tJaegeuk Kim <jaegeuk@kernel.org>, Michael Halcrow <mhalcrow@google.com>,\n\tEric Biggers <ebiggers@google.com>", "Subject": "[PATCH 22/25] ubifs: switch to fscrypt_prepare_link()", "Date": "Wed, 20 Sep 2017 15:46:02 -0700", "Message-Id": "<20170920224605.22030-23-ebiggers3@gmail.com>", "X-Mailer": "git-send-email 2.14.1.821.g8fa685d3b7-goog", "In-Reply-To": "<20170920224605.22030-1-ebiggers3@gmail.com>", "References": "<20170920224605.22030-1-ebiggers3@gmail.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": "From: Eric Biggers <ebiggers@google.com>\n\nSigned-off-by: Eric Biggers <ebiggers@google.com>\n---\n fs/ubifs/dir.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c\nindex 417fe0b29f23..09e6c56b11bc 100644\n--- a/fs/ubifs/dir.c\n+++ b/fs/ubifs/dir.c\n@@ -743,9 +743,9 @@ static int ubifs_link(struct dentry *old_dentry, struct inode *dir,\n \tubifs_assert(inode_is_locked(dir));\n \tubifs_assert(inode_is_locked(inode));\n \n-\tif (ubifs_crypt_is_encrypted(dir) &&\n-\t !fscrypt_has_permitted_context(dir, inode))\n-\t\treturn -EPERM;\n+\terr = fscrypt_prepare_link(old_dentry, dir, dentry);\n+\tif (err)\n+\t\treturn err;\n \n \terr = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm);\n \tif (err)\n", "prefixes": [ "22/25" ] }