]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
UBUNTU: SAUCE: (namespace) posix_acl: Export posix_acl_fix_xattr_userns() to modules
authorSeth Forshee <seth.forshee@canonical.com>
Fri, 8 Jul 2016 20:57:51 +0000 (15:57 -0500)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 8 Nov 2016 16:46:47 +0000 (16:46 +0000)
commit5a10b5bdf6cd205cd4b142b5b456229cf9e8ae80
treea398afd24fb8db38183c31d729f7e4ec252f5181
parent392767a8218721745b75fb24d36adba964b92fa6
UBUNTU: SAUCE: (namespace) posix_acl: Export posix_acl_fix_xattr_userns() to modules

BugLink: http://bugs.launchpad.net/bugs/1634964
Fuse will make use of this function to provide backwards-
compatible acl support when proper posix acl support is added.
Add a check to return immediately if the to and from namespaces
are the same, and remove equivalent checks from its callers.

Also return an error code to indicate to callers whether or not
the conversion of the id between the user namespaces was
successful. For a valid xattr the id will continue to be changed
regardless to maintain the current behaviour for existing
callers, so they do not require updates to handle failed
conversions.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
fs/posix_acl.c
include/linux/posix_acl_xattr.h