vfs: move cap_convert_nscap() call into vfs_setxattr()
cap_convert_nscap() does permission checking as well as conversion of the xattr value conditionally based on fs's user-ns. This is needed by overlayfs and probably other layered fs (ecryptfs) and is what vfs_foo() is supposed to do anyway. Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com> Acked-by: NJames Morris <jamorris@linux.microsoft.com>
Showing
想要评论请 注册 或 登录