Message ID | 20171215174225.31583-9-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="RHTfJR6V"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="YJjqEXGS"; 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 3yyydZ20fjz9t2d for <incoming@patchwork.ozlabs.org>; Sat, 16 Dec 2017 04:50:42 +1100 (AEDT) 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=lT+KfgA8f6RdFzRjK7Yr8c7G6hQJhbynDClEXtE2Aq8=; b=RHTfJR6VsC7ntauxNdvNGyyOtP x2tDoSlltHu2Vg74EKGiLydOL7zsxc2pI1sGAZ7UnIL3JTCrNST5xp4Xf91S2YYUMsuIKn8U+8Jpg WnRta5lus7GGPT/5fmHqH0KgIz/RqQtYP9GA6kIktCUshjm8R8k3qjsWYcD3Qsiiz0mUVbbFKoYOv pWzK+kEYmX41rl0bf3yoRUJNKP8/oV2c8i5CyxCZ+KHEByNRrR4Y1vw4M25CLUvUDUjdrEfsOfBBD oKf5C6yg3yOwIh9S45RjxWBkt5TapwHv7mPAe3tO6XM2y1ZlAhtbbDN3xAHs4siBHkqbHYu8Tz+xR PSARpGWw==; 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 1ePu7y-0002y6-1z; Fri, 15 Dec 2017 17:50:30 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePu4k-0008Q9-Uq for linux-mtd@lists.infradead.org; Fri, 15 Dec 2017 17:47:18 +0000 Received: by mail-pg0-x243.google.com with SMTP id j9so6245804pgc.11 for <linux-mtd@lists.infradead.org>; Fri, 15 Dec 2017 09:46:50 -0800 (PST) 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=Ygxq310phw2BXpcROyP7tV4g/v4w1X3ol7j4gOOlUbo=; b=YJjqEXGSvL2Xzi6Eh0irQaR5TLd7iaIe6qNqqhvSq5w1+QlFzv5fNz9PPbAUHovEMa byoX8Q5v2OdoHN3ZQX9d8hBMYg7uyvKhX+lEPEQvniqYDsaefOno7+lnbi34uQezdFM9 LbF4SBUkI7EyGSkkfkOa9Sc9uouoQt8uHTPgVLsSylnUZX25pbHFFFQd9sUXNjNKetGH J5vUNdv7jpxz+8CE4c/VnwOWjIMWAAD1Lt+VGnYgkpnJM/6UrEkTbKwHBDlBNguaIOrk Mno5i8tk8bpKpn6X/r5YyLk2zaXl39/w+1a8U6tduDWbKpCDj8EuzzqhpQLutHTNehQk ohTw== 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=Ygxq310phw2BXpcROyP7tV4g/v4w1X3ol7j4gOOlUbo=; b=EEEgNkwQgmKiOmkOn3POZC9clAbcwkO9W0hnOwDrO0zgUhHhmTlmN51KddRn5DIIT1 owbEubusuGdtrrQThf2ezbpOOPBeS6iDWeCLliNR7a3Fh+Ks/smlcB6HRAQkn1INrUjv 9uqRw5YS/mXs+VNr5yBQOLf7sQQRhgGyXEusLbLXgUZoSgCOOycf0xrE6yWd1aV74O4f XFrFeVp+ocCmM+mhDoDi92iFxVfrxhgZgyDkGu7x3SM5IHjLNH/BztwtBuDDcKMZH2sk Io43iT6ORn07qFM91MK0FQDa4rpjmg93TDaeUE0i4HGVdUpBAYV7RYYOaMlR957uqYNy FZ+Q== X-Gm-Message-State: AKGB3mIWclkDuRgCzcbUkAtQkFhL7IbPaedFsq1BZvCYFv8ORN+CrLRx lwifbv1f7eMmrfeKdsP2fYM= X-Google-Smtp-Source: ACJfBoscvP3bZNQYOiLqNTrRsSxW1uDKWPUdKLF++SNTlbMrYuNgOTNxBrHI2ppDuuaa2xpVT9z9WA== X-Received: by 10.159.244.5 with SMTP id x5mr14554075plr.413.1513360006703; Fri, 15 Dec 2017 09:46:46 -0800 (PST) Received: from zzz.localdomain (c-67-185-97-198.hsd1.wa.comcast.net. [67.185.97.198]) by smtp.gmail.com with ESMTPSA id j62sm12980149pfc.18.2017.12.15.09.46.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Dec 2017 09:46:45 -0800 (PST) From: Eric Biggers <ebiggers3@gmail.com> To: linux-fscrypt@vger.kernel.org Subject: [PATCH 08/24] fscrypt: move fscrypt_is_dot_dotdot() to fs/crypto/fname.c Date: Fri, 15 Dec 2017 09:42:09 -0800 Message-Id: <20171215174225.31583-9-ebiggers3@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171215174225.31583-1-ebiggers3@gmail.com> References: <20171215174225.31583-1-ebiggers3@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171215_094711_539652_1A8EFE86 X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.8 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.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:c05:0:0:0:243 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ebiggers3[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (ebiggers3[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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>, linux-f2fs-devel@lists.sourceforge.net, linux-mtd@lists.infradead.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: symlink helpers and fscrypt.h cleanup
|
expand
|
diff --git a/fs/crypto/fname.c b/fs/crypto/fname.c index 305541bcd108..b8c5061553b1 100644 --- a/fs/crypto/fname.c +++ b/fs/crypto/fname.c @@ -15,6 +15,17 @@ #include <linux/ratelimit.h> #include "fscrypt_private.h" +static inline bool fscrypt_is_dot_dotdot(const struct qstr *str) +{ + if (str->len == 1 && str->name[0] == '.') + return true; + + if (str->len == 2 && str->name[0] == '.' && str->name[1] == '.') + return true; + + return false; +} + /** * fname_encrypt() - encrypt a filename * diff --git a/include/linux/fscrypt.h b/include/linux/fscrypt.h index 2e4dce0365cf..3045fc49d3ca 100644 --- a/include/linux/fscrypt.h +++ b/include/linux/fscrypt.h @@ -57,17 +57,6 @@ struct fscrypt_name { /* Maximum value for the third parameter of fscrypt_operations.set_context(). */ #define FSCRYPT_SET_CONTEXT_MAX_SIZE 28 -static inline bool fscrypt_is_dot_dotdot(const struct qstr *str) -{ - if (str->len == 1 && str->name[0] == '.') - return true; - - if (str->len == 2 && str->name[0] == '.' && str->name[1] == '.') - return true; - - return false; -} - #if __FS_HAS_ENCRYPTION #include <linux/fscrypt_supp.h> #else