Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23 lines
736 B
C
23 lines
736 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2020 Samsung Electronics Co., Ltd.
|
|
* Author(s): Namjae Jeon <linkinjeon@kernel.org>
|
|
*/
|
|
|
|
struct ndr {
|
|
char *data;
|
|
int offset;
|
|
int length;
|
|
};
|
|
|
|
#define NDR_NTSD_OFFSETOF 0xA0
|
|
|
|
int ndr_encode_dos_attr(struct ndr *n, struct xattr_dos_attrib *da);
|
|
int ndr_decode_dos_attr(struct ndr *n, struct xattr_dos_attrib *da);
|
|
int ndr_encode_posix_acl(struct ndr *n, struct mnt_idmap *idmap,
|
|
struct inode *inode, struct xattr_smb_acl *acl,
|
|
struct xattr_smb_acl *def_acl);
|
|
int ndr_encode_v4_ntacl(struct ndr *n, struct xattr_ntacl *acl);
|
|
int ndr_encode_v3_ntacl(struct ndr *n, struct xattr_ntacl *acl);
|
|
int ndr_decode_v4_ntacl(struct ndr *n, struct xattr_ntacl *acl);
|