linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: Eric Biggers <ebiggers3@gmail.com>
Cc: "Theodore Ts'o" <tytso@mit.edu>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: fs/crypto: root read-access without key
Date: Sat, 18 Feb 2017 01:13:58 +0800	[thread overview]
Message-ID: <367bee98-c33f-85b4-9903-b46d0c8c0213@oracle.com> (raw)
In-Reply-To: <20170217044315.GB634@zzz>



Hi Eric,

> This is incorrect because for a file there is one only inode system-wide, not
> one inode per user (or per process).  So everyone will either see the key in the
> inode or not.

    Well I didn't say inode per user. As I said inode has Key pointer,
    and if its not for the file-name then there is no requisite to check
    key during directory lookup, which apparently seems to be reason
    for the performance hit.

> There are actually several separate protections against such attacks.  First,
> the encryption of both contents and filenames makes it more difficult (though
> not necessarily impossible) to identify target files.

   Well its not done in the right way. as below.

> Not encrypting filenames would not be the end of the world, but it's a security
> enhancement which is nice to have.  And I think you are blaming filenames
> encryption specifically for things which are actually more general concerns.

   An identifiable dir/file name isn't the problem. The problem is that
   the policy on the directory is modifiable/removable by the attacker.
   Encrypting the file name for this purpose is just not convincing to
   me.

Thanks, Anand

      reply	other threads:[~2017-02-17 17:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-14 10:18 fs/crypto: root read-access without key Anand Jain
2017-02-14 10:48 ` Richard Weinberger
2017-02-14 12:50   ` Anand Jain
2017-02-14 13:30     ` Richard Weinberger
2017-02-14 15:50 ` Theodore Ts'o
2017-02-14 19:00   ` Al Viro
2017-02-15 15:39     ` Theodore Ts'o
2017-02-15  8:04   ` Anand Jain
2017-02-17  4:43     ` Eric Biggers
2017-02-17 17:13       ` Anand Jain [this message]

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=367bee98-c33f-85b4-9903-b46d0c8c0213@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=ebiggers3@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --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).