linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Xattr issues with overlayfs
@ 2014-11-24 10:16 hujianyang
  2014-11-24 10:25 ` [PATCH] ovl: Use macros to present ovl_xattr hujianyang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: hujianyang @ 2014-11-24 10:16 UTC (permalink / raw)
  To: miklos; +Cc: linux-fsdevel@vger.kernel.org, linux-unionfs

Hi Miklos,

I'm learning overlayfs and finding some issues in xattr support. I
don't know if they are real problems or misunderstandings. I wish you
could take some time to help.

As is said in Documentation/filesystems/overlayfs.txt:

"""
A directory is made opaque by setting the xattr "trusted.overlay.opaque"
to "y".  Where the upper filesystem contains an opaque directory, any
directory in the lower filesystem with the same name is ignored.
"""

I think users could set *ovl_opaque_xattr* to hide the files in lower
directory in userspace like this:

	setxattr(path, "trusted.overlay.opaque", &value, 1, XATTR_CREATE);

But It seems not true because we forbid this operation in userspace:

ovl_setxattr():

        if (ovl_is_private_xattr(name))
                goto out_drop_write;


I think current xattr operations in overlayfs including setxattr,
getxattr, listxattr, removexattr are used for upper/lower xattrs and
overlayfs private xattrs also.

Is ovl_set/remove_opauqe() related to this?

I'd like to introduce some of my work.

1) Use macros to indicate overlayfs_private_xattr.
2) Enable overlayfs_private_xattr setting an removing in userspace.
   * I'm not clear with this one

Thanks~!

Hu


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-26  8:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-24 10:16 Xattr issues with overlayfs hujianyang
2014-11-24 10:25 ` [PATCH] ovl: Use macros to present ovl_xattr hujianyang
2014-11-24 10:30 ` [PATCH] ovl: Enable opauqe setting an removing in userspace hujianyang
2014-11-25 14:41 ` Xattr issues with overlayfs Miklos Szeredi
2014-11-26  8:09   ` hujianyang

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).