public inbox for linux-unionfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "L. A. Walsh" <lkml@tlinx.org>
To: overlayfs <linux-unionfs@vger.kernel.org>
Subject: Re: Metadata,  source and security concerns (was is Documentation/filesystems/overlayfs.txt current?)
Date: Sun, 17 Dec 2017 18:50:09 -0800	[thread overview]
Message-ID: <5A372CE1.9000906@tlinx.org> (raw)
In-Reply-To: <5A3700C7.2010602@tlinx.org>

L A Walsh wrote:
> Re meta data source.
Maybe I'm not expressing my concern clearly or maybe a different
definition of metadata is being used?  Strictly speaking, I consider
meta data to be any data that is NOT the data in a file (or directory)
and would normally include ownership, permissions and extended attributes.

 From an ease-of-access and implementation point of view, some may not
consider information in the inode, strictly, 'metadata', but the line
becomes blurry when file access information is stored not only in the
inode, but also in the, potentially separate, extended attribute area(s)
of a file system, for example, AFAIK, AC lists are stored in extended
attributes with some file system implementations -- especially if they
are longer (or larger) lists. 

It seems that access information would have to be read from the lower
file system (and, implicitly, meta data) or would otherwise be
unavailable or ignored.  Certainly an overlay can't ignore the
security information contained in the metadata in the lower layers and
would have to, it seems, inspect the metadata associated with an inode
if for no other reason to read ACL and/or fscap's set in the lower
filesystem. 

I don't see any mention of how setuid/setgid bits are set, but one would
assume that if such are supported, then FS-based capabilities would
also need to be read from the lower filesystem. 

It _may_ not be necessary, but it seems prudent, that the upper level
file system would (or should?) have the same "features" as the lower
file system so a merged-view would be consistent with the isolated view
of the lower filesystem, no?  It seems it would be problematic if the
upper filesystem didn't support the same features as the lower.

Could it be clarified if the overlayfs ignores lower FS metadata like
ACL's and set-capability info?

  reply	other threads:[~2017-12-18  2:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-17 23:41 is Documentation/filesystems/overlayfs.txt current? L A Walsh
2017-12-18  2:50 ` L. A. Walsh [this message]
2017-12-18  8:49   ` Metadata, source and security concerns (was is Documentation/filesystems/overlayfs.txt current?) Amir Goldstein

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=5A372CE1.9000906@tlinx.org \
    --to=lkml@tlinx.org \
    --cc=linux-unionfs@vger.kernel.org \
    /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