]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
4d3c95f5 JL |
2 | /* |
3 | * GRUB -- GRand Unified Bootloader | |
4 | * Copyright (C) 1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc. | |
4d3c95f5 JL |
5 | */ |
6 | /* | |
7 | * Copyright 2007 Sun Microsystems, Inc. All rights reserved. | |
8 | * Use is subject to license terms. | |
9 | */ | |
10 | ||
11 | #ifndef _SYS_FS_ZFS_ACL_H | |
12 | #define _SYS_FS_ZFS_ACL_H | |
13 | ||
14 | typedef struct zfs_oldace { | |
15 | uint32_t z_fuid; /* "who" */ | |
16 | uint32_t z_access_mask; /* access mask */ | |
17 | uint16_t z_flags; /* flags, i.e inheritance */ | |
18 | uint16_t z_type; /* type of entry allow/deny */ | |
19 | } zfs_oldace_t; | |
20 | ||
21 | #define ACE_SLOT_CNT 6 | |
22 | ||
23 | typedef struct zfs_znode_acl_v0 { | |
24 | uint64_t z_acl_extern_obj; /* ext acl pieces */ | |
25 | uint32_t z_acl_count; /* Number of ACEs */ | |
26 | uint16_t z_acl_version; /* acl version */ | |
27 | uint16_t z_acl_pad; /* pad */ | |
28 | zfs_oldace_t z_ace_data[ACE_SLOT_CNT]; /* 6 standard ACEs */ | |
29 | } zfs_znode_acl_v0_t; | |
30 | ||
31 | #define ZFS_ACE_SPACE (sizeof(zfs_oldace_t) * ACE_SLOT_CNT) | |
32 | ||
33 | typedef struct zfs_znode_acl { | |
34 | uint64_t z_acl_extern_obj; /* ext acl pieces */ | |
35 | uint32_t z_acl_size; /* Number of bytes in ACL */ | |
36 | uint16_t z_acl_version; /* acl version */ | |
37 | uint16_t z_acl_count; /* ace count */ | |
38 | uint8_t z_ace_data[ZFS_ACE_SPACE]; /* space for embedded ACEs */ | |
39 | } zfs_znode_acl_t; | |
40 | ||
41 | ||
42 | #endif /* _SYS_FS_ZFS_ACL_H */ |