Commit f154dbb4 authored by Seth Forshee's avatar Seth Forshee Committed by Shrirang Bagul
Browse files

UBUNTU: SAUCE: (namespace) posix_acl: Export posix_acl_fix_xattr_userns() to modules



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: default avatarSeth Forshee <seth.forshee@canonical.com>
Signed-off-by: default avatarOndrej Kubik <ondrej.kubik@canonical.com>
(cherry picked from commit 3016585a5cbfc7604328ca972923e1f18017b417)
Signed-off-by: default avatarShrirang Bagul <shrirang.bagul@canonical.com>
parent 1fc34ebc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment