ndr.h 736 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (C) 2020 Samsung Electronics Co., Ltd.
  4. * Author(s): Namjae Jeon <linkinjeon@kernel.org>
  5. */
  6. struct ndr {
  7. char *data;
  8. int offset;
  9. int length;
  10. };
  11. #define NDR_NTSD_OFFSETOF 0xA0
  12. int ndr_encode_dos_attr(struct ndr *n, struct xattr_dos_attrib *da);
  13. int ndr_decode_dos_attr(struct ndr *n, struct xattr_dos_attrib *da);
  14. int ndr_encode_posix_acl(struct ndr *n, struct mnt_idmap *idmap,
  15. struct inode *inode, struct xattr_smb_acl *acl,
  16. struct xattr_smb_acl *def_acl);
  17. int ndr_encode_v4_ntacl(struct ndr *n, struct xattr_ntacl *acl);
  18. int ndr_encode_v3_ntacl(struct ndr *n, struct xattr_ntacl *acl);
  19. int ndr_decode_v4_ntacl(struct ndr *n, struct xattr_ntacl *acl);