From: Anand Jain <anand.jain@oracle.com>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: Eric Biggers <ebiggers3@gmail.com>,
linux-fscrypt@vger.kernel.org, linux-doc@vger.kernel.org,
linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,
Jaegeuk Kim <jaegeuk@kernel.org>,
Richard Weinberger <richard@nod.at>,
Michael Halcrow <mhalcrow@google.com>,
Eric Biggers <ebiggers@google.com>
Subject: Re: [PATCH] fscrypt: add a documentation file for filesystem-level encryption
Date: Tue, 29 Aug 2017 11:54:47 +0800 [thread overview]
Message-ID: <93100bd1-d4f7-3e4f-0e4a-6f8bb2787b6f@oracle.com> (raw)
In-Reply-To: <20170828142225.5qr5sasarjqps64m@thunk.org>
>>> If *no* applications care whether the filenames are encrypted or not, sure.
>>> But are you absolutely sure that no applications care? How do you know? And what
>>> is the advantage of not encrypting the filenames anyway? It is better to
>>> encrypt by default.
>>>
>> File-name is a kind of File-system semantic and altering based on the on
>> the user key context does not guarantee the system will be compatible with
>> all their legacy applications.
>
> In theory we could make it optional whether or not file names are
> encrypted. But that means extra complexity, and extra complexity
> means potential bugs and vulnerabilities --- both potential
> implementation bugs, vulnerabilities caused by users getting confused
> by how they configure the system settings. So in general with
> security systems it's better to limit the complexity to the bare
> minimum.
That's right from the dev perspective. But for every security fix
there is a convenience that is being sacrificed by the user. Providing a
security fix even if there is no threat just adds pain to the
user/solution and nothing else. Of course it all depends on the use case.
BTRFS has an experimental fscrypt implementation[1] which does not
include the file-name encryption part it should be included but as an
optional since not all uses cases saves sensitive information in the
file-name. OR even if the attacker is able to identify a file called
secrete.txt and break it then its still points at the weakness of the
file-data encryption. Can we say that ? apparently from the discussion
here it seems the answer is yes.
[1]
Kernel: https://github.com/asj/linux-btrfs-fscryptv1
> The only case which you've come up with in terms of potential
> vulnerabilities is backup and restore, and backup and restore is
> complicated for a number of numbers, since you need to be able to
> backup and restore not just the file name and the encrypted data
> blocks, but also the encrypted per-file key.
> So getting this right
> will almost certainly require that the backup/restore software be
> fscrypt aware.
Not necessarily, as below..
> Hence, making the encryption of the filenames optional doesn't just to
> make life easier for backup/restore isn't a compelling argument, since
> the backup/restore program is going to have to have special case
> handling for fscrypt protected file systems *anyway*.
fscrypt backup and restore does not work even without file-name
encryption because the Extended Attribute needs special ioctl in the
fscrypt (I did rise this objection before).
But its entirely possible to create a string based encryption metadata
which can be updated/retrieved using the legacy backup tools such as
rsync --xattrs
That will be a design for fscryptv2 probably..
OR I mean to say possible optional file-name encryption is not the
ground reason for the encrypted backup and restore challenge.
Thanks, Anand
> Cheers,
>
> - Ted
next prev parent reply other threads:[~2017-08-29 3:54 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-18 19:47 [PATCH] fscrypt: add a documentation file for filesystem-level encryption Eric Biggers
2017-08-18 21:06 ` Andreas Dilger
2017-08-20 2:32 ` Theodore Ts'o
2017-08-21 22:33 ` Eric Biggers
2017-08-21 13:44 ` Anand Jain
2017-08-21 21:02 ` Theodore Ts'o
2017-08-21 23:08 ` Eric Biggers
2017-08-22 2:22 ` Anand Jain
2017-08-22 3:07 ` Eric Biggers
2017-08-22 15:35 ` Anand Jain
2017-08-22 17:36 ` Eric Biggers
2017-08-28 12:18 ` Anand Jain
2017-08-31 18:14 ` Eric Biggers
2017-08-22 3:07 ` Theodore Ts'o
2017-08-22 2:22 ` Anand Jain
2017-08-22 2:55 ` Eric Biggers
2017-08-22 15:33 ` Anand Jain
2017-08-22 17:07 ` Eric Biggers
2017-08-28 12:18 ` Anand Jain
2017-08-28 14:22 ` Theodore Ts'o
2017-08-29 3:54 ` Anand Jain [this message]
2017-08-31 18:10 ` Eric Biggers
2017-08-31 17:50 ` Eric Biggers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=93100bd1-d4f7-3e4f-0e4a-6f8bb2787b6f@oracle.com \
--to=anand.jain@oracle.com \
--cc=ebiggers3@gmail.com \
--cc=ebiggers@google.com \
--cc=jaegeuk@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fscrypt@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=mhalcrow@google.com \
--cc=richard@nod.at \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).