Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */
0002 /*
0003  * Copyright (C) 2002 Andreas Gruenbacher <a.gruenbacher@computer.org>
0004  * Copyright (C) 2016 Red Hat, Inc.
0005  *
0006  * This file is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU Lesser General Public
0008  * License as published by the Free Software Foundation; either
0009  * version 2.1 of the License, or (at your option) any later version.
0010  *
0011  * This file is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014  * Lesser General Public License for more details.
0015  *
0016  */
0017 
0018 #ifndef __UAPI_POSIX_ACL_XATTR_H
0019 #define __UAPI_POSIX_ACL_XATTR_H
0020 
0021 #include <linux/types.h>
0022 
0023 /* Supported ACL a_version fields */
0024 #define POSIX_ACL_XATTR_VERSION 0x0002
0025 
0026 /* An undefined entry e_id value */
0027 #define ACL_UNDEFINED_ID    (-1)
0028 
0029 struct posix_acl_xattr_entry {
0030     __le16          e_tag;
0031     __le16          e_perm;
0032     __le32          e_id;
0033 };
0034 
0035 struct posix_acl_xattr_header {
0036     __le32          a_version;
0037 };
0038 
0039 #endif  /* __UAPI_POSIX_ACL_XATTR_H */