Message ID | 20171215174225.31583-25-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="sYNwJi6b"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WK+VQ6LG"; 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 3yyyjr3pgbz9s03 for <incoming@patchwork.ozlabs.org>; Sat, 16 Dec 2017 04:54:24 +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=XtZrEf6dvrNCjBB66EQlufdnhpWsMPAdMQ0710zit9U=; b=sYNwJi6bE2vA5Q+ECGZFORnubh Ku6x9aZM8FSjqCPiG3+DN2P0qjA6oiZueUJxBNsi7Z9jyqkDf1j0U/1q2pUSQPD6zXvd4M1FguZmo KdrDPMLyj9c/L+JHxEnGJyZZTGAxIK+agP83KOCAB3GgB1jPLCHbrIKEiNlkKtE7rQPqN+2Ds2gW3 N26ZzzPEC8OgnF+/BNO1Gp1RBqokbC3tL+vc1RZokQbtly3TdYz31643rGF6D+B7XL57NskNQUlht rtTUNoeLUF06rl77QZ74Wni60yJL9W0uGnaSHJyG0/vJIRgJAbYFP7OBvN3NJEZr/57VTEFu/3TKu 5uKWTb5Q==; 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 1ePuBZ-0006k1-77; Fri, 15 Dec 2017 17:54:13 +0000 Received: from mail-pg0-f65.google.com ([74.125.83.65]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePu59-00005P-RK for linux-mtd@lists.infradead.org; Fri, 15 Dec 2017 17:47:38 +0000 Received: by mail-pg0-f65.google.com with SMTP id f12so6256262pgo.5 for <linux-mtd@lists.infradead.org>; Fri, 15 Dec 2017 09:47:10 -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=lEShlutuRLB17SfOdSu4zdJUybMKo/oX95udld4MdxE=; b=WK+VQ6LGFBhwfyuP95UMYNdkbS2RWITj2n6e9f+e0zcPEBRUD+yfp55ks39ZpaS7Ys SjA0Phi6pRn1PwsWRkBhVccFi6IPOakz8J4LKpajoq4mBukb+ACDs0lmKzJWHGPTRIUI meCHfTrD/ZRMWkn29QX/GtXr+OfEnL5wkliP5mNgpZkLXbgGEi/zWyKkdOr3AjVAmxya +3k21OW7PrZ+f+JsyhRJEkHEM9cgMNRaq2gwuiX+Kmg7tyr0kevqvtp8h7HQ6/k/cH+d IfuneM87NDx64xsHjS3tPaWCxDIceKVFoFVn+ppWMMqukjGcsmgfAnYeKsANcX4kT+8g Aa/g== 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=lEShlutuRLB17SfOdSu4zdJUybMKo/oX95udld4MdxE=; b=QbnUjcPsalzpBHj2AoRNVrgv9JHjlv7Ufy4S7cGwTT973F6pLh/JcoSCmv5pDOn8n5 Gnjx5wCWGa3/IYq5eHZXLVZ/3uJDeJs86kxQIpptFScSo+ASRYdDuZQSLc8+VlNrti5Z ZAu8o1atQ4kBk3G/9rv5miWT4Ly9GNEdU8Z5yi3nAucYz2FiGneHzFowGjrEg5HwlLww vBmVUImW7nRJgbPjMH03JPsRPBkYZG9qzvWB9nt/x0gKioCuEYBeHU9ZgQoE/zN0idFk e4mG23mOgZkFcKKS8D9RqWpyNcgi5EathmFP1OkOGXKZ/xXoDfIffEpZ1CqA0Mm6OeJA PpgA== X-Gm-Message-State: AKGB3mIO/G7i2YvV+ubzdk35EBRPKSmAF0mHQMKQlq0zJ9NJyHrioZZC j9TXj1lKWx1ZRqwDdrEJQGVYFlVjLzM= X-Google-Smtp-Source: ACJfBosox1HBSdSGAfZyEvpTUiCMcXDp3eVjSwkC/AWwuNfMEeC6yNQnP9ureVrO1wOb6UkWAKVduA== X-Received: by 10.98.220.218 with SMTP id c87mr14162834pfl.229.1513360025206; Fri, 15 Dec 2017 09:47:05 -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.47.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Dec 2017 09:47:04 -0800 (PST) From: Eric Biggers <ebiggers3@gmail.com> To: linux-fscrypt@vger.kernel.org Subject: [PATCH 24/24] fscrypt: document symlink length restriction Date: Fri, 15 Dec 2017 09:42:25 -0800 Message-Id: <20171215174225.31583-25-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_094735_971945_65484107 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 [74.125.83.65 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 -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.83.65 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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/Documentation/filesystems/fscrypt.rst b/Documentation/filesystems/fscrypt.rst index 776ddc655f79..cfbc18f0d9c9 100644 --- a/Documentation/filesystems/fscrypt.rst +++ b/Documentation/filesystems/fscrypt.rst @@ -448,8 +448,14 @@ astute users may notice some differences in behavior: - The st_size of an encrypted symlink will not necessarily give the length of the symlink target as required by POSIX. It will actually - give the length of the ciphertext, which may be slightly longer than - the plaintext due to the NUL-padding. + give the length of the ciphertext, which will be slightly longer + than the plaintext due to NUL-padding and an extra 2-byte overhead. + +- The maximum length of an encrypted symlink is 2 bytes shorter than + the maximum length of an unencrypted symlink. For example, on an + EXT4 filesystem with a 4K block size, unencrypted symlinks can be up + to 4095 bytes long, while encrypted symlinks can only be up to 4093 + bytes long (both lengths excluding the terminating null). Note that mmap *is* supported. This is possible because the pagecache for an encrypted file contains the plaintext, not the ciphertext.