1*4882a593Smuzhiyun /* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Copyright (C) 2002 Andreas Gruenbacher <a.gruenbacher@computer.org> 4*4882a593Smuzhiyun * Copyright (C) 2016 Red Hat, Inc. 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * This file is free software; you can redistribute it and/or 7*4882a593Smuzhiyun * modify it under the terms of the GNU Lesser General Public 8*4882a593Smuzhiyun * License as published by the Free Software Foundation; either 9*4882a593Smuzhiyun * version 2.1 of the License, or (at your option) any later version. 10*4882a593Smuzhiyun * 11*4882a593Smuzhiyun * This file is distributed in the hope that it will be useful, 12*4882a593Smuzhiyun * but WITHOUT ANY WARRANTY; without even the implied warranty of 13*4882a593Smuzhiyun * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14*4882a593Smuzhiyun * Lesser General Public License for more details. 15*4882a593Smuzhiyun * 16*4882a593Smuzhiyun */ 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun #ifndef __UAPI_POSIX_ACL_H 19*4882a593Smuzhiyun #define __UAPI_POSIX_ACL_H 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun #define ACL_UNDEFINED_ID (-1) 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun /* a_type field in acl_user_posix_entry_t */ 24*4882a593Smuzhiyun #define ACL_TYPE_ACCESS (0x8000) 25*4882a593Smuzhiyun #define ACL_TYPE_DEFAULT (0x4000) 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun /* e_tag entry in struct posix_acl_entry */ 28*4882a593Smuzhiyun #define ACL_USER_OBJ (0x01) 29*4882a593Smuzhiyun #define ACL_USER (0x02) 30*4882a593Smuzhiyun #define ACL_GROUP_OBJ (0x04) 31*4882a593Smuzhiyun #define ACL_GROUP (0x08) 32*4882a593Smuzhiyun #define ACL_MASK (0x10) 33*4882a593Smuzhiyun #define ACL_OTHER (0x20) 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun /* permissions in the e_perm field */ 36*4882a593Smuzhiyun #define ACL_READ (0x04) 37*4882a593Smuzhiyun #define ACL_WRITE (0x02) 38*4882a593Smuzhiyun #define ACL_EXECUTE (0x01) 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun #endif /* __UAPI_POSIX_ACL_H */ 41