1 /* Generated by ./xlat/gen.sh from ./xlat/key_perms.in; do not edit. */ 2 #if !(defined(KEY_POS_VIEW) || (defined(HAVE_DECL_KEY_POS_VIEW) && HAVE_DECL_KEY_POS_VIEW)) 3 # define KEY_POS_VIEW 0x01000000 4 #endif 5 #if !(defined(KEY_POS_READ) || (defined(HAVE_DECL_KEY_POS_READ) && HAVE_DECL_KEY_POS_READ)) 6 # define KEY_POS_READ 0x02000000 7 #endif 8 #if !(defined(KEY_POS_WRITE) || (defined(HAVE_DECL_KEY_POS_WRITE) && HAVE_DECL_KEY_POS_WRITE)) 9 # define KEY_POS_WRITE 0x04000000 10 #endif 11 #if !(defined(KEY_POS_SEARCH) || (defined(HAVE_DECL_KEY_POS_SEARCH) && HAVE_DECL_KEY_POS_SEARCH)) 12 # define KEY_POS_SEARCH 0x08000000 13 #endif 14 #if !(defined(KEY_POS_LINK) || (defined(HAVE_DECL_KEY_POS_LINK) && HAVE_DECL_KEY_POS_LINK)) 15 # define KEY_POS_LINK 0x10000000 16 #endif 17 #if !(defined(KEY_POS_SETATTR) || (defined(HAVE_DECL_KEY_POS_SETATTR) && HAVE_DECL_KEY_POS_SETATTR)) 18 # define KEY_POS_SETATTR 0x20000000 19 #endif 20 #if !(defined(KEY_POS_ALL) || (defined(HAVE_DECL_KEY_POS_ALL) && HAVE_DECL_KEY_POS_ALL)) 21 # define KEY_POS_ALL 0x3f000000 22 #endif 23 #if !(defined(KEY_USR_VIEW) || (defined(HAVE_DECL_KEY_USR_VIEW) && HAVE_DECL_KEY_USR_VIEW)) 24 # define KEY_USR_VIEW 0x00010000 25 #endif 26 #if !(defined(KEY_USR_READ) || (defined(HAVE_DECL_KEY_USR_READ) && HAVE_DECL_KEY_USR_READ)) 27 # define KEY_USR_READ 0x00020000 28 #endif 29 #if !(defined(KEY_USR_WRITE) || (defined(HAVE_DECL_KEY_USR_WRITE) && HAVE_DECL_KEY_USR_WRITE)) 30 # define KEY_USR_WRITE 0x00040000 31 #endif 32 #if !(defined(KEY_USR_SEARCH) || (defined(HAVE_DECL_KEY_USR_SEARCH) && HAVE_DECL_KEY_USR_SEARCH)) 33 # define KEY_USR_SEARCH 0x00080000 34 #endif 35 #if !(defined(KEY_USR_LINK) || (defined(HAVE_DECL_KEY_USR_LINK) && HAVE_DECL_KEY_USR_LINK)) 36 # define KEY_USR_LINK 0x00100000 37 #endif 38 #if !(defined(KEY_USR_SETATTR) || (defined(HAVE_DECL_KEY_USR_SETATTR) && HAVE_DECL_KEY_USR_SETATTR)) 39 # define KEY_USR_SETATTR 0x00200000 40 #endif 41 #if !(defined(KEY_USR_ALL) || (defined(HAVE_DECL_KEY_USR_ALL) && HAVE_DECL_KEY_USR_ALL)) 42 # define KEY_USR_ALL 0x003f0000 43 #endif 44 #if !(defined(KEY_GRP_VIEW) || (defined(HAVE_DECL_KEY_GRP_VIEW) && HAVE_DECL_KEY_GRP_VIEW)) 45 # define KEY_GRP_VIEW 0x00000100 46 #endif 47 #if !(defined(KEY_GRP_READ) || (defined(HAVE_DECL_KEY_GRP_READ) && HAVE_DECL_KEY_GRP_READ)) 48 # define KEY_GRP_READ 0x00000200 49 #endif 50 #if !(defined(KEY_GRP_WRITE) || (defined(HAVE_DECL_KEY_GRP_WRITE) && HAVE_DECL_KEY_GRP_WRITE)) 51 # define KEY_GRP_WRITE 0x00000400 52 #endif 53 #if !(defined(KEY_GRP_SEARCH) || (defined(HAVE_DECL_KEY_GRP_SEARCH) && HAVE_DECL_KEY_GRP_SEARCH)) 54 # define KEY_GRP_SEARCH 0x00000800 55 #endif 56 #if !(defined(KEY_GRP_LINK) || (defined(HAVE_DECL_KEY_GRP_LINK) && HAVE_DECL_KEY_GRP_LINK)) 57 # define KEY_GRP_LINK 0x00001000 58 #endif 59 #if !(defined(KEY_GRP_SETATTR) || (defined(HAVE_DECL_KEY_GRP_SETATTR) && HAVE_DECL_KEY_GRP_SETATTR)) 60 # define KEY_GRP_SETATTR 0x00002000 61 #endif 62 #if !(defined(KEY_GRP_ALL) || (defined(HAVE_DECL_KEY_GRP_ALL) && HAVE_DECL_KEY_GRP_ALL)) 63 # define KEY_GRP_ALL 0x00003f00 64 #endif 65 #if !(defined(KEY_OTH_VIEW) || (defined(HAVE_DECL_KEY_OTH_VIEW) && HAVE_DECL_KEY_OTH_VIEW)) 66 # define KEY_OTH_VIEW 0x00000001 67 #endif 68 #if !(defined(KEY_OTH_READ) || (defined(HAVE_DECL_KEY_OTH_READ) && HAVE_DECL_KEY_OTH_READ)) 69 # define KEY_OTH_READ 0x00000002 70 #endif 71 #if !(defined(KEY_OTH_WRITE) || (defined(HAVE_DECL_KEY_OTH_WRITE) && HAVE_DECL_KEY_OTH_WRITE)) 72 # define KEY_OTH_WRITE 0x00000004 73 #endif 74 #if !(defined(KEY_OTH_SEARCH) || (defined(HAVE_DECL_KEY_OTH_SEARCH) && HAVE_DECL_KEY_OTH_SEARCH)) 75 # define KEY_OTH_SEARCH 0x00000008 76 #endif 77 #if !(defined(KEY_OTH_LINK) || (defined(HAVE_DECL_KEY_OTH_LINK) && HAVE_DECL_KEY_OTH_LINK)) 78 # define KEY_OTH_LINK 0x00000010 79 #endif 80 #if !(defined(KEY_OTH_SETATTR) || (defined(HAVE_DECL_KEY_OTH_SETATTR) && HAVE_DECL_KEY_OTH_SETATTR)) 81 # define KEY_OTH_SETATTR 0x00000020 82 #endif 83 #if !(defined(KEY_OTH_ALL) || (defined(HAVE_DECL_KEY_OTH_ALL) && HAVE_DECL_KEY_OTH_ALL)) 84 # define KEY_OTH_ALL 0x0000003f 85 #endif 86 87 #ifdef IN_MPERS 88 89 # error static const struct xlat key_perms in mpers mode 90 91 #else 92 93 static 94 const struct xlat key_perms[] = { 95 XLAT(KEY_POS_VIEW), 96 XLAT(KEY_POS_READ), 97 XLAT(KEY_POS_WRITE), 98 XLAT(KEY_POS_SEARCH), 99 XLAT(KEY_POS_LINK), 100 XLAT(KEY_POS_SETATTR), 101 XLAT(KEY_POS_ALL), 102 XLAT(KEY_USR_VIEW), 103 XLAT(KEY_USR_READ), 104 XLAT(KEY_USR_WRITE), 105 XLAT(KEY_USR_SEARCH), 106 XLAT(KEY_USR_LINK), 107 XLAT(KEY_USR_SETATTR), 108 XLAT(KEY_USR_ALL), 109 XLAT(KEY_GRP_VIEW), 110 XLAT(KEY_GRP_READ), 111 XLAT(KEY_GRP_WRITE), 112 XLAT(KEY_GRP_SEARCH), 113 XLAT(KEY_GRP_LINK), 114 XLAT(KEY_GRP_SETATTR), 115 XLAT(KEY_GRP_ALL), 116 XLAT(KEY_OTH_VIEW), 117 XLAT(KEY_OTH_READ), 118 XLAT(KEY_OTH_WRITE), 119 XLAT(KEY_OTH_SEARCH), 120 XLAT(KEY_OTH_LINK), 121 XLAT(KEY_OTH_SETATTR), 122 XLAT(KEY_OTH_ALL), 123 XLAT_END 124 }; 125 126 #endif /* !IN_MPERS */ 127