2021-03-16 09:49:09 +08:00
|
|
|
/* 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);
|
2021-06-30 17:25:53 +08:00
|
|
|
int ndr_encode_posix_acl(struct ndr *n, struct user_namespace *user_ns,
|
|
|
|
struct inode *inode, struct xattr_smb_acl *acl,
|
2021-05-26 16:57:12 +08:00
|
|
|
struct xattr_smb_acl *def_acl);
|
2021-03-16 09:49:09 +08:00
|
|
|
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);
|