Namjae Jeon | e2f3448 | 2021-03-16 10:49:09 +0900 | [diff] [blame] | 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 | |
| 7 | struct ndr { |
| 8 | char *data; |
| 9 | int offset; |
| 10 | int length; |
| 11 | }; |
| 12 | |
| 13 | #define NDR_NTSD_OFFSETOF 0xA0 |
| 14 | |
| 15 | int ndr_encode_dos_attr(struct ndr *n, struct xattr_dos_attrib *da); |
| 16 | int ndr_decode_dos_attr(struct ndr *n, struct xattr_dos_attrib *da); |
| 17 | int ndr_encode_posix_acl(struct ndr *n, struct inode *inode, |
Namjae Jeon | 070fb21 | 2021-05-26 17:57:12 +0900 | [diff] [blame] | 18 | struct xattr_smb_acl *acl, |
| 19 | struct xattr_smb_acl *def_acl); |
Namjae Jeon | e2f3448 | 2021-03-16 10:49:09 +0900 | [diff] [blame] | 20 | int ndr_encode_v4_ntacl(struct ndr *n, struct xattr_ntacl *acl); |
| 21 | int ndr_encode_v3_ntacl(struct ndr *n, struct xattr_ntacl *acl); |
| 22 | int ndr_decode_v4_ntacl(struct ndr *n, struct xattr_ntacl *acl); |