Go to the documentation of this file.
8 #ifndef _ACL_PERM_DEFINED
10 #define _ACL_PERM_DEFINED
42 #define ACCESS_xxx_xxx 0x0000
43 #define ACCESS_xxx_xWx 0x0202
44 #define ACCESS_xxx_xWD 0x0303
45 #define ACCESS_xxx_Rxx 0x0404
46 #define ACCESS_xxx_RWx 0x0606
47 #define ACCESS_xxx_RWD 0x0707
48 #define ACCESS_xWx_xWx 0x2222
49 #define ACCESS_xWD_xWD 0x3333
50 #define ACCESS_xWx_xxx 0x2020
51 #define ACCESS_Rxx_xxx 0x4040
52 #define ACCESS_Rxx_xWx 0x4242
53 #define ACCESS_Rxx_Rxx 0x4444
54 #define ACCESS_Rxx_RxD 0x4545
55 #define ACCESS_Rxx_RWx 0x4646
56 #define ACCESS_Rxx_RWD 0x4747
57 #define ACCESS_RxD_RxD 0x5555
58 #define ACCESS_RWx_xxx 0x6060
59 #define ACCESS_RWx_xWx 0x6262
60 #define ACCESS_RWx_Rxx 0x6464
61 #define ACCESS_RWx_RWx 0x6666
62 #define ACCESS_RWx_RWD 0x6767
63 #define ACCESS_RWD_xxx 0x7070
64 #define ACCESS_RWD_xWD 0x7373
65 #define ACCESS_RWD_RWD 0x7777
67 #define ACCESS_INT_xxx_xxx 0x0000
68 #define ACCESS_INT_xxx_xWx 0x0200
69 #define ACCESS_INT_xxx_Rxx 0x0400
70 #define ACCESS_INT_xWx_xxx 0x2000
71 #define ACCESS_INT_xWx_xWx 0x2200
72 #define ACCESS_INT_Rxx_xxx 0x4000
73 #define ACCESS_INT_Rxx_xWx 0x4200
74 #define ACCESS_INT_Rxx_Rxx 0x4400
75 #define ACCESS_INT_Rxx_RWx 0x4600
76 #define ACCESS_INT_RWx_xxx 0x6000
77 #define ACCESS_INT_RWx_xWx 0x6200
78 #define ACCESS_INT_RWx_RWx 0x6600
80 #define ACCESS_SPECIAL_Rxx_RWx_Rxx_Rxx \
83 #define ACCESS_SPECIAL_Rxx_RWD_Rxx_Rxx \
87 #define ACCESS_FLAG_x 0x0000
88 #define ACCESS_FLAG_R 0x0004
89 #define ACCESS_FLAG_W 0x0002
90 #define ACCESS_FLAG_D 0x0001
91 #define ACCESS_FLAG_H_R 0x0040
92 #define ACCESS_FLAG_H_W 0x0020
93 #define ACCESS_FLAG_H_D 0x0010
95 #define ACCESS_MASK_EXTERNAL 0x0077
96 #define ACCESS_MASK_INTERNAL 0x7700
98 #define MK_ACCESS_INTERNAL( value ) ( ( value ) << 8 )
118 #define ACCESS_KEYSET_xxxxx 0x0000
119 #define ACCESS_KEYSET_xxXXx 0x0006
120 #define ACCESS_KEYSET_xxRxD 0x0005
121 #define ACCESS_KEYSET_xxRWx 0x0006
122 #define ACCESS_KEYSET_xxRWD 0x0007
123 #define ACCESS_KEYSET_FxRxD 0x0015
124 #define ACCESS_KEYSET_FNxxx 0x0018
125 #define ACCESS_KEYSET_FNRWD 0x001F
127 #define ACCESS_FLAG_F 0x0010
128 #define ACCESS_FLAG_N 0x0008
140 #define MKPERM( perm ) ACCESS_##perm
141 #define MKPERM_INT( perm ) ACCESS_INT_##perm
145 #ifdef USE_CERTIFICATES
146 #define MKPERM_CERTIFICATES( perm ) ACCESS_##perm
147 #define MKPERM_INT_CERTIFICATES( perm ) ACCESS_INT_##perm
148 #define MKPERM_SPECIAL_CERTIFICATES( perm ) ACCESS_SPECIAL_##perm
150 #define MKPERM_CERTIFICATES( perm ) ACCESS_xxx_xxx
151 #define MKPERM_INT_CERTIFICATES( perm ) ACCESS_INT_xxx_xxx
152 #define MKPERM_SPECIAL_CERTIFICATES( perm ) ACCESS_xxx_xxx
156 #define MKPERM_CERTREQ( perm ) ACCESS_##perm
157 #define MKPERM_INT_CERTREQ( perm ) ACCESS_INT_##perm
159 #define MKPERM_CERTREQ( perm ) ACCESS_xxx_xxx
160 #define MKPERM_INT_CERTREQ( perm ) ACCESS_INT_xxx_xxx
164 #define MKPERM_CERTREV( perm ) ACCESS_##perm
165 #define MKPERM_INT_CERTREV( perm ) ACCESS_INT_##perm
167 #define MKPERM_CERTREV( perm ) ACCESS_xxx_xxx
168 #define MKPERM_INT_CERTREV( perm ) ACCESS_INT_xxx_xxx
171 #if defined( USE_CERTREQ ) || defined( USE_CERTREV )
172 #define MKPERM_CERTREQ_REV( perm ) ACCESS_##perm
174 #define MKPERM_CERTREQ_REV( perm ) ACCESS_xxx_xxx
178 #define MKPERM_CERTVAL( perm ) ACCESS_##perm
179 #define MKPERM_INT_CERTVAL( perm ) ACCESS_INT_##perm
181 #define MKPERM_CERTVAL( perm ) ACCESS_xxx_xxx
182 #define MKPERM_INT_CERTVAL( perm ) ACCESS_INT_xxx_xxx
185 #if defined( USE_CERTREV ) || defined( USE_CERTVAL )
186 #define MKPERM_CERTREV_VAL( perm ) ACCESS_##perm
187 #define MKPERM_INT_CERTREV_VAL( perm ) ACCESS_INT_##perm
189 #define MKPERM_CERTREV_VAL( perm ) ACCESS_xxx_xxx
190 #define MKPERM_INT_CERTREV_VAL( perm ) ACCESS_INT_xxx_xxx
194 #define MKPERM_CMSATTR( perm ) ACCESS_##perm
195 #define MKPERM_INT_CMSATTR( perm ) ACCESS_INT_##perm
196 #define MKPERM_SPECIAL_CMSATTR( perm ) ACCESS_SPECIAL_##perm
198 #define MKPERM_CMSATTR( perm ) ACCESS_xxx_xxx
199 #define MKPERM_INT_CMSATTR( perm ) ACCESS_INT_xxx_xxx
200 #define MKPERM_SPECIAL_CMSATTR( perm ) ACCESS_xxx_xxx
204 #define MKPERM_PKIUSER( perm ) ACCESS_##perm
205 #define MKPERM_INT_PKIUSER( perm ) ACCESS_INT_##perm
207 #define MKPERM_PKIUSER( perm ) ACCESS_xxx_xxx
208 #define MKPERM_INT_PKIUSER( perm ) ACCESS_INT_xxx_xxx
211 #ifdef USE_CERT_OBSOLETE
212 #define MKPERM_CERT_OBSOLETE( perm ) ACCESS_##perm
214 #define MKPERM_CERT_OBSOLETE( perm ) ACCESS_xxx_xxx
217 #ifdef USE_CERT_DNSTRING
218 #define MKPERM_DNSTRING( perm ) ACCESS_##perm
220 #define MKPERM_DNSTRING( perm ) ACCESS_xxx_xxx
223 #ifdef USE_CMSATTR_OBSCURE
224 #define MKPERM_CMSATTR_OBSCURE( perm ) ACCESS_##perm
226 #define MKPERM_CMSATTR_OBSCURE( perm ) ACCESS_xxx_xxx
229 #if defined( USE_CMSATTR_OBSCURE ) || defined( USE_TSP )
230 #define MKPERM_CMSATTR_OBSCURE_TSP( perm ) ACCESS_##perm
232 #define MKPERM_CMSATTR_OBSCURE_TSP( perm ) ACCESS_xxx_xxx
235 #ifdef USE_CERTLEVEL_PKIX_PARTIAL
236 #define MKPERM_CERT_PKIX_PARTIAL( perm ) ACCESS_##perm
238 #define MKPERM_CERT_PKIX_PARTIAL( perm ) ACCESS_xxx_xxx
241 #if defined( USE_CERTLEVEL_PKIX_PARTIAL ) && defined( USE_CERTREV )
242 #define MKPERM_CERTREV_PKIX_PARTIAL( perm ) ACCESS_##perm
244 #define MKPERM_CERTREV_PKIX_PARTIAL( perm ) ACCESS_xxx_xxx
246 #if defined( USE_CERTLEVEL_PKIX_FULL ) && defined( USE_CERTREV )
247 #define MKPERM_CERTREV_PKIX_FULL( perm ) ACCESS_##perm
249 #define MKPERM_CERTREV_PKIX_FULL( perm ) ACCESS_xxx_xxx
252 #if defined( USE_CERTLEVEL_PKIX_PARTIAL ) && defined( USE_CERT_OBSCURE )
253 #define MKPERM_PKIX_PARTIAL_OBSCURE( perm ) ACCESS_##perm
255 #define MKPERM_PKIX_PARTIAL_OBSCURE( perm ) ACCESS_xxx_xxx
258 #ifdef USE_CERTLEVEL_PKIX_FULL
259 #define MKPERM_CERT_PKIX_FULL( perm ) ACCESS_##perm
261 #define MKPERM_CERT_PKIX_FULL( perm ) ACCESS_xxx_xxx
264 #if defined( USE_CERTLEVEL_PKIX_FULL ) && \
265 ( defined( USE_CERTREQ ) || defined( USE_CERTREV ) )
266 #define MKPERM_CERTREQ_REV_PKIX_FULL( perm ) ACCESS_##perm
268 #define MKPERM_CERTREQ_REV_PKIX_FULL( perm ) ACCESS_xxx_xxx
274 #define MKPERM_PKCS11( perm ) ACCESS_##perm
275 #define MKPERM_INT_PKCS11( perm ) ACCESS_INT_##perm
277 #define MKPERM_PKCS11( perm ) ACCESS_xxx_xxx
278 #define MKPERM_INT_PKCS11( perm ) ACCESS_INT_xxx_xxx
284 #define MKPERM_ENVELOPE( perm ) ACCESS_##perm
285 #define MKPERM_INT_ENVELOPE( perm ) ACCESS_INT_##perm
287 #define MKPERM_ENVELOPE( perm ) ACCESS_xxx_xxx
288 #define MKPERM_INT_ENVELOPE( perm ) ACCESS_INT_xxx_xxx
291 #ifdef USE_COMPRESSION
292 #define MKPERM_COMPRESSION( perm ) ACCESS_##perm
293 #define MKPERM_INT_COMPRESSION( perm ) ACCESS_INT_##perm
295 #define MKPERM_COMPRESSION( perm ) ACCESS_xxx_xxx
296 #define MKPERM_INT_COMPRESSION( perm ) ACCESS_INT_xxx_xxx
299 #if defined( USE_PGP ) || defined( USE_PGPKEYS )
300 #define MKPERM_PGP( perm ) ACCESS_##perm
301 #define MKPERM_INT_PGP( perm ) ACCESS_INT_##perm
303 #define MKPERM_PGP( perm ) ACCESS_xxx_xxx
304 #define MKPERM_INT_PGP( perm ) ACCESS_INT_xxx_xxx
310 #define MKPERM_DBMS( perm ) ACCESS_##perm
311 #define MKPERM_INT_DBMS( perm ) ACCESS_INT_##perm
313 #define MKPERM_DBMS( perm ) ACCESS_xxx_xxx
314 #define MKPERM_INT_DBMS( perm ) ACCESS_INT_xxx_xxx
318 #define MKPERM_LDAP( perm ) ACCESS_##perm
319 #define MKPERM_INT_LDAP( perm ) ACCESS_INT_##perm
321 #define MKPERM_LDAP( perm ) ACCESS_xxx_xxx
322 #define MKPERM_INT_LDAP( perm ) ACCESS_INT_xxx_xxx
326 #define MKPERM_HTTP( perm ) ACCESS_##perm
327 #define MKPERM_INT_HTTP( perm ) ACCESS_INT_##perm
329 #define MKPERM_HTTP( perm ) ACCESS_xxx_xxx
330 #define MKPERM_INT_HTTP( perm ) ACCESS_INT_xxx_xxx
336 #define MKPERM_TCP( perm ) ACCESS_##perm
337 #define MKPERM_INT_TCP( perm ) ACCESS_INT_##perm
339 #define MKPERM_TCP( perm ) ACCESS_xxx_xxx
340 #define MKPERM_INT_TCP( perm ) ACCESS_INT_xxx_xxx
344 #define MKPERM_SESSIONS( perm ) ACCESS_##perm
345 #define MKPERM_INT_SESSIONS( perm ) ACCESS_INT_##perm
347 #define MKPERM_SESSIONS( perm ) ACCESS_xxx_xxx
348 #define MKPERM_INT_SESSIONS( perm ) ACCESS_INT_xxx_xxx
352 #define MKPERM_CMP( perm ) ACCESS_##perm
353 #define MKPERM_INT_CMP( perm ) ACCESS_INT_##perm
355 #define MKPERM_CMP( perm ) ACCESS_xxx_xxx
356 #define MKPERM_INT_CMP( perm ) ACCESS_INT_xxx_xxx
360 #define MKPERM_SCEP( perm ) ACCESS_##perm
362 #define MKPERM_SCEP( perm ) ACCESS_xxx_xxx
366 #define MKPERM_SSH( perm ) ACCESS_##perm
367 #define MKPERM_INT_SSH( perm ) ACCESS_INT_##perm
369 #define MKPERM_SSH( perm ) ACCESS_xxx_xxx
370 #define MKPERM_INT_SSH( perm ) ACCESS_INT_xxx_xxx
373 #ifdef USE_SSH_EXTENDED
374 #define MKPERM_SSH_EXT( perm ) ACCESS_##perm
376 #define MKPERM_SSH_EXT( perm ) ACCESS_xxx_xxx
380 #define MKPERM_SSL( perm ) ACCESS_##perm
381 #define MKPERM_INT_SSL( perm ) ACCESS_INT_##perm
383 #define MKPERM_SSL( perm ) ACCESS_xxx_xxx
384 #define MKPERM_INT_SSL( perm ) ACCESS_INT_xxx_xxx
388 #define MKPERM_TSP( perm ) ACCESS_##perm
389 #define MKPERM_INT_TSP( perm ) ACCESS_INT_##perm
391 #define MKPERM_TSP( perm ) ACCESS_xxx_xxx
392 #define MKPERM_INT_TSP( perm ) ACCESS_INT_xxx_xxx