0001
0002
0003
0004
0005
0006
0007 struct ndr {
0008 char *data;
0009 int offset;
0010 int length;
0011 };
0012
0013 #define NDR_NTSD_OFFSETOF 0xA0
0014
0015 int ndr_encode_dos_attr(struct ndr *n, struct xattr_dos_attrib *da);
0016 int ndr_decode_dos_attr(struct ndr *n, struct xattr_dos_attrib *da);
0017 int ndr_encode_posix_acl(struct ndr *n, struct user_namespace *user_ns,
0018 struct inode *inode, struct xattr_smb_acl *acl,
0019 struct xattr_smb_acl *def_acl);
0020 int ndr_encode_v4_ntacl(struct ndr *n, struct xattr_ntacl *acl);
0021 int ndr_encode_v3_ntacl(struct ndr *n, struct xattr_ntacl *acl);
0022 int ndr_decode_v4_ntacl(struct ndr *n, struct xattr_ntacl *acl);