blob: 8b579844109bc5e8f22b23f4e744394aea7b6107 [file] [log] [blame]
Christopher Ferris33185402017-01-13 13:28:52 -08001/*
2 * Copyright (C) 2002 Andreas Gruenbacher <a.gruenbacher@computer.org>
3 * Copyright (C) 2016 Red Hat, Inc.
4 *
5 * This file is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This file is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 */
16
17#ifndef __UAPI_POSIX_ACL_XATTR_H
18#define __UAPI_POSIX_ACL_XATTR_H
19
20#include <linux/types.h>
21
22/* Supported ACL a_version fields */
23#define POSIX_ACL_XATTR_VERSION 0x0002
24
25/* An undefined entry e_id value */
26#define ACL_UNDEFINED_ID (-1)
27
28struct posix_acl_xattr_entry {
29 __le16 e_tag;
30 __le16 e_perm;
31 __le32 e_id;
32};
33
34struct posix_acl_xattr_header {
35 __le32 a_version;
36};
37
38#endif /* __UAPI_POSIX_ACL_XATTR_H */