Message ID | 20170920224605.22030-18-ebiggers3@gmail.com |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="W5siMf7h"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="c55mtC7P"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LLS4T3XH"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xyGg74rBXz9s7g for <incoming@patchwork.ozlabs.org>; Thu, 21 Sep 2017 09:49:23 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Mf5mw0c9LV8pRRlOFgNhBuqpT6mVw2ErNojTHT7sJGo=; b=W5siMf7h7++6T2znY65PKKFXxx kGRl9xlnisIb/Gh0Z0Kd6qLQ5cL0W5YDL9poXbid+Nc2oz81z/9Rt9Eyf0FRkCOHABKQvg09v6Hgd tkDlp+d4LwFdB/nEcOanTUjMyzvbbd9lC1ioZmkhme8h2F0FoaGIxeS983c0Vlfh7kpLyiwYsyOi4 aZ48Nicxw7HRWJBGWcAloIK3jQB/lsjOFDzm23bwpR293BdLoY6KE59e9jVlUyZSRtQht4kqGHCkp AXZOhaCjNDgQwnt4n7baYK+pnQAMF6YMNpbA1DBz5QEWNud8ayqu7U5yuD1fZOR3lwLbrBosoIDrh HVNfykFQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1duojy-0001CR-Lf; Wed, 20 Sep 2017 23:49:14 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1duojx-0001Bu-Jj for linux-mtd@bombadil.infradead.org; Wed, 20 Sep 2017 23:49:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ywnmT6n59+Xpv6fhlcK7gzredb959P8opuLuaqGP3qQ=; b=c55mtC7Ptzr0rO+RKa7fkANQB W2D9/Fg3yPEnfJkFhwxQlKRwWvEMjv3GPrYloosONIlRcC3asoFNANHGDYZNUIZxlGsPni8102x0C 7pjGSbXoRln87RzlkPkTtsFBRzbKiHdzIbzSLMzcaYEAi1YQSdA0n8+I6YeTR/34oJiDz0e/7m09E IrPoGX7b6B/QgxV+JQkWnlYykHWDesC7OGYrIVre2qOd8vC7TbRh1Awb9CR5ceD+8Q044RoJJGPYh EPqrC0ziYqc2OyN/PE7Ft3eXPRgRqBhSRicjXjhlTJh2DlT+IIKq3KFDvRok69kecRb31zBPmEPhp j9ibngqeA==; Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dunmF-00017c-OH for linux-mtd@lists.infradead.org; Wed, 20 Sep 2017 22:47:32 +0000 Received: by mail-pf0-x241.google.com with SMTP id e69so1716515pfg.4 for <linux-mtd@lists.infradead.org>; Wed, 20 Sep 2017 15:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ywnmT6n59+Xpv6fhlcK7gzredb959P8opuLuaqGP3qQ=; b=LLS4T3XHf8LZZeynHewIsS1jboFW+vz9Xtvdpy6Vo7bBAcIqFACzzQrnXzCSP6JJFt 5ffeuzclPq2Qm57YyBpR8rAN2UK5I3TZRscq51KFPcKn038oMfLr5J6jSRJzK2teQ1Hd mTrOBywA7AwcKLIG9qhXqNhZjbANiPZdNwijK2smP11vvy461lQFI2WeyQI0CfomuQ6E MM/VgtRv13Zgcx89yuxT5b/KzIIpET/m2sYKe3KAbQfCsB3vd+5R0a2I7RseR8swWoGj ccVLJrE+mF0gyYKidpynChYM/gqxKbGoLp+In9ueEMafwbO7F2jMIkA6vlDKg1jHpwtW 0kPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ywnmT6n59+Xpv6fhlcK7gzredb959P8opuLuaqGP3qQ=; b=aQVf9dZjjhuxsBfaOig8gxTHEyoNSca+Hg5GBtGTYdktciMXBsTGR4isLa8Ba1mBZD 0IrqRlcdjPVeG7qmb7hy2HHy3/qPg39nVoZluvggqeKYFYXy9uTm7CCoGnxuBqIHhYIH fhU0H7M+i0a1RB7p9dZBEhZigqtjoXjV+yUq7ApJvWLOhAIv4UvJGhMlNDcm1G2h+75y dybOI1avnOMgWvAHeUNKMjSmTKlW4nnCfTCiBhd0TAKNs5K3LBeV/fZTpmwNegM/R5Qv TONErzFSP8DeZKj/5MyG6eIi3r0hbXrquRso0GuO7mpIKC9cdzJRV9eocZ0qBHz0xFqd mzvQ== X-Gm-Message-State: AHPjjUjcBRwmyu54cYyQ3Q/zecvietkkwwGmtxGW+qIy4lclMVDb7kV0 iu39yiDj6joYKOGUkwiD+WA= X-Google-Smtp-Source: AOwi7QD0QLa93r73SuYjXSLfkQ53JO+50SYfOcr/UYab2Td9qVEpjpTUkhjUPR5v17trh2oTtIa5qg== X-Received: by 10.84.129.71 with SMTP id 65mr3492806plb.250.1505947629592; Wed, 20 Sep 2017 15:47:09 -0700 (PDT) Received: from ebiggers-linuxstation.kir.corp.google.com ([100.66.174.81]) by smtp.gmail.com with ESMTPSA id j2sm6249pgn.26.2017.09.20.15.47.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Sep 2017 15:47:09 -0700 (PDT) From: Eric Biggers <ebiggers3@gmail.com> To: linux-fscrypt@vger.kernel.org Subject: [PATCH 17/25] f2fs: switch to fscrypt_prepare_link() Date: Wed, 20 Sep 2017 15:45:57 -0700 Message-Id: <20170920224605.22030-18-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> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.8 (-) X-Spam-Report: SpamAssassin version 3.4.1 on merlin.infradead.org summary: Content analysis details: (-1.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c00:0:0:0:241 listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (ebiggers3[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ebiggers3[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Cc: "Theodore Y . Ts'o" <tytso@mit.edu>, Eric Biggers <ebiggers@google.com>, Michael Halcrow <mhalcrow@google.com>, linux-f2fs-devel@lists.sourceforge.net, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, Jaegeuk Kim <jaegeuk@kernel.org>, linux-ext4@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
fscrypt: add some higher-level helper functions
|
expand
|
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index a4dab98c4b7b..cf4e4294e450 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -221,9 +221,9 @@ static int f2fs_link(struct dentry *old_dentry, struct inode *dir, struct f2fs_sb_info *sbi = F2FS_I_SB(dir); int err; - if (f2fs_encrypted_inode(dir) && - !fscrypt_has_permitted_context(dir, inode)) - return -EPERM; + err = fscrypt_prepare_link(old_dentry, dir, dentry); + if (err) + return err; if (is_inode_flag_set(dir, FI_PROJ_INHERIT) && (!projid_eq(F2FS_I(dir)->i_projid,