1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
use bitflags::bitflags;
use nom::{
number::complete::{le_u128, le_u16, le_u32, le_u8},
*,
};
use crate::enums::constants::*;
#[derive(Debug)]
pub struct SecurityDescriptor {
pub revision: u8,
pub sbz1: u8,
pub control: u16,
pub offset_owner: u32,
pub offset_group: u32,
pub offset_sacl: u32,
pub offset_dacl: u32,
}
impl SecurityDescriptor {
named!(
pub parse<Self>,
do_parse!(
revision: le_u8
>> sbz1: le_u8
>> control: le_u16
>> offset_owner: le_u32
>> offset_group: le_u32
>> offset_sacl: le_u32
>> offset_dacl: le_u32
>> ({
SecurityDescriptor {
revision,
sbz1,
control,
offset_owner,
offset_group,
offset_sacl,
offset_dacl,
}
})
)
);
}
#[derive(Debug, Clone)]
pub struct LdapSidIdentifiedAuthority {
pub value: Vec<u8>,
}
impl LdapSidIdentifiedAuthority {
named!(
pub parse<Self>,
do_parse!(
value: take!(6)
>> ({
LdapSidIdentifiedAuthority {
value:value.to_vec()
}
})
)
);
}
#[derive(Clone, Debug)]
pub struct LdapSid {
pub revision: u8,
pub sub_authority_count: u8,
pub identifier_authority: LdapSidIdentifiedAuthority,
pub sub_authority: Vec<u32>,
}
impl LdapSid {
named!(
pub parse<Self>,
do_parse!(
revision: le_u8
>> sub_authority_count: le_u8
>> identifier_authority: call!(LdapSidIdentifiedAuthority::parse)
>> sub_authority: count!(le_u32 ,sub_authority_count as usize)
>> ({
LdapSid {
revision,
sub_authority_count,
identifier_authority,
sub_authority
}
})
)
);
}
#[derive(Debug)]
pub struct Acl {
pub acl_revision: u8,
pub sbz1: u8,
pub acl_size: u16,
pub ace_count: u16,
pub sbz2: u16,
pub data: Vec<Ace>,
}
impl Acl {
named!(
pub parse<Self>,
do_parse!(
acl_revision: le_u8
>> sbz1: le_u8
>> acl_size: le_u16
>> ace_count: le_u16
>> sbz2: le_u16
>> data: count!(Ace::parse, ace_count as usize)
>> ({
Acl {
acl_revision,
sbz1,
acl_size,
ace_count,
sbz2,
data
}
})
)
);
}
#[derive(Debug)]
pub struct Ace {
pub ace_type: u8,
pub ace_flags: u8,
pub ace_size: u16,
pub data: AceFormat,
}
impl Ace {
named!(
pub parse<Self>,
do_parse!(
ace_type: le_u8
>> ace_flags: le_u8
>> ace_size: le_u16
>> data: switch!(value!(ace_type as u8),
ACCESS_ALLOWED_ACE_TYPE => call!(AccessAllowedAce::parse)|
ACCESS_DENIED_ACE_TYPE => call!(AccessAllowedAce::parse)|
ACCESS_ALLOWED_OBJECT_ACE_TYPE => call!(AccessAllowedObjectAce::parse)|
ACCESS_DENIED_OBJECT_ACE_TYPE => call!(AccessAllowedObjectAce::parse)
)
>> ({
Ace {
ace_type,
ace_flags,
ace_size,
data
}
})
)
);
}
#[derive(Clone, Debug)]
pub enum AceFormat {
AceAllowed(AccessAllowedAce),
AceObjectAllowed(AccessAllowedObjectAce),
Empty,
}
impl AceFormat {
pub fn get_mask(value: AceFormat) -> Option<u32> {
match value {
AceFormat::AceAllowed(ace) => Some(ace.mask),
AceFormat::AceObjectAllowed(ace) => Some(ace.mask),
AceFormat::Empty => None,
}
}
pub fn get_sid(value: AceFormat) -> Option<LdapSid> {
match value {
AceFormat::AceAllowed(ace) => Some(ace.sid),
AceFormat::AceObjectAllowed(ace) => Some(ace.sid),
AceFormat::Empty => None,
}
}
pub fn get_flags(value: AceFormat) -> Option<ObjectAceFlags> {
match value {
AceFormat::AceAllowed(_) => None,
AceFormat::AceObjectAllowed(ace) => Some(ace.flags),
AceFormat::Empty => None,
}
}
pub fn get_object_type(value: AceFormat) -> Option<u128> {
match value {
AceFormat::AceAllowed(_) => None,
AceFormat::AceObjectAllowed(ace) => ace.object_type,
AceFormat::Empty => None,
}
}
pub fn get_inherited_object_type(value: AceFormat) -> Option<u128> {
match value {
AceFormat::AceAllowed(_) => None,
AceFormat::AceObjectAllowed(ace) => ace.inherited_object_type,
AceFormat::Empty => None,
}
}
}
#[derive(Clone, Debug)]
pub struct AccessAllowedAce {
pub mask: u32,
pub sid: LdapSid,
}
impl AccessAllowedAce {
named!(
pub parse<AceFormat>,
do_parse!(
mask: le_u32
>> sid: call!(LdapSid::parse)
>> ({
AceFormat::AceAllowed (
AccessAllowedAce {
mask,
sid,
}
)
})
)
);
}
#[derive(Clone, Debug)]
pub struct AccessAllowedObjectAce {
pub mask: u32,
pub flags: ObjectAceFlags,
pub object_type: Option<u128>,
pub inherited_object_type: Option<u128>,
pub sid: LdapSid,
}
impl AccessAllowedObjectAce {
named!(
pub parse<AceFormat>,
do_parse!(
mask: le_u32
>> flags: call!(ObjectAceFlags::parse)
>> object_type:
cond!(flags.contains(ObjectAceFlags::ACE_OBJECT_PRESENT),le_u128)
>> inherited_object_type:
cond!(flags.contains(ObjectAceFlags::ACE_INHERITED_OBJECT_PRESENT),le_u128)
>> sid: call!(LdapSid::parse)
>> ({
AceFormat::AceObjectAllowed (
AccessAllowedObjectAce {
mask,
flags,
object_type,
inherited_object_type,
sid,
}
)
})
)
);
}
bitflags! {
pub struct ObjectAceFlags : u32 {
const ACE_OBJECT_PRESENT= 0x0001;
const ACE_INHERITED_OBJECT_PRESENT= 0x0002;
}
}
impl ObjectAceFlags {
named!(
pub parse<ObjectAceFlags>,
do_parse!(
flags: le_u32
>> ({
ObjectAceFlags::from_bits(flags).unwrap()
})
)
);
}
#[test]
#[rustfmt::skip]
pub fn test_secdesc() {
let original = vec![
1,
0,
4, 140,
120, 9, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
20, 0, 0, 0
];
let result = SecurityDescriptor::parse(&original).unwrap().1;
assert_eq!(result.revision, 1);
}
#[test]
#[rustfmt::skip]
pub fn test_ace() {
let original_ace = vec![
0x00,
0x12,
0x18, 0x00,
0xbd, 0x01, 0x0f, 0x00,
0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x20, 0x02, 0x00, 0x00
];
let result = Ace::parse(&original_ace).unwrap().1;
assert_eq!(result.ace_type, 0);
println!("ACE_ALLOWED: {:?}",result);
let original_ace_object = vec![
0x05,
0x12,
0x2c, 0x00,
0x94, 0x00, 0x02, 0x00,
0x02, 0x00, 0x00, 0x00,
0xba, 0x7a, 0x96, 0xbf, 0xe6, 0x0d, 0xd0, 0x11, 0xa2, 0x85, 0x00, 0xaa, 0x00, 0x30, 0x49, 0xe2,
0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x02, 0x00, 0x00
];
let result = Ace::parse(&original_ace_object).unwrap().1;
assert_eq!(result.ace_type, 5);
println!("ACE_ALLOWED_OBJECT: {:?}",result);
}
#[test]
#[rustfmt::skip]
pub fn test_acl_admin() {
let original_acl = vec![ 0x04, 0x00, 0x74, 0x04, 0x18, 0x00, 0x00, 0x00, 0x05, 0x00, 0x3c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x42, 0x16, 0x4c, 0xc0, 0x20, 0xd0, 0x11, 0xa7, 0x68, 0x00, 0xaa, 0x00, 0x6e, 0x05, 0x29, 0x14, 0xcc, 0x28, 0x48, 0x37, 0x14, 0xbc, 0x45, 0x9b, 0x07, 0xad, 0x6f, 0x01, 0x5e, 0x5f, 0x28, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x02, 0x00, 0x00, 0x05, 0x00, 0x3c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x42, 0x16, 0x4c, 0xc0, 0x20, 0xd0, 0x11, 0xa7, 0x68, 0x00, 0xaa, 0x00, 0x6e, 0x05, 0x29, 0xba, 0x7a, 0x96, 0xbf, 0xe6, 0x0d, 0xd0, 0x11, 0xa2, 0x85, 0x00, 0xaa, 0x00, 0x30, 0x49, 0xe2, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x02, 0x00, 0x00, 0x05, 0x00, 0x3c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x10, 0x20, 0x20, 0x5f, 0xa5, 0x79, 0xd0, 0x11, 0x90, 0x20, 0x00, 0xc0, 0x4f, 0xc2, 0xd4, 0xcf, 0x14, 0xcc, 0x28, 0x48, 0x37, 0x14, 0xbc, 0x45, 0x9b, 0x07, 0xad, 0x6f, 0x01, 0x5e, 0x5f, 0x28, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x02, 0x00, 0x00, 0x05, 0x00, 0x3c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x10, 0x20, 0x20, 0x5f, 0xa5, 0x79, 0xd0, 0x11, 0x90, 0x20, 0x00, 0xc0, 0x4f, 0xc2, 0xd4, 0xcf, 0xba, 0x7a, 0x96, 0xbf, 0xe6, 0x0d, 0xd0, 0x11, 0xa2, 0x85, 0x00, 0xaa, 0x00, 0x30, 0x49, 0xe2, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x02, 0x00, 0x00, 0x05, 0x00, 0x3c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x40, 0xc2, 0x0a, 0xbc, 0xa9, 0x79, 0xd0, 0x11, 0x90, 0x20, 0x00, 0xc0, 0x4f, 0xc2, 0xd4, 0xcf, 0x14, 0xcc, 0x28, 0x48, 0x37, 0x14, 0xbc, 0x45, 0x9b, 0x07, 0xad, 0x6f, 0x01, 0x5e, 0x5f, 0x28, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x02, 0x00, 0x00, 0x05, 0x00, 0x3c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x40, 0xc2, 0x0a, 0xbc, 0xa9, 0x79, 0xd0, 0x11, 0x90, 0x20, 0x00, 0xc0, 0x4f, 0xc2, 0xd4, 0xcf, 0xba, 0x7a, 0x96, 0xbf, 0xe6, 0x0d, 0xd0, 0x11, 0xa2, 0x85, 0x00, 0xaa, 0x00, 0x30, 0x49, 0xe2, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x02, 0x00, 0x00, 0x05, 0x00, 0x3c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x42, 0x2f, 0xba, 0x59, 0xa2, 0x79, 0xd0, 0x11, 0x90, 0x20, 0x00, 0xc0, 0x4f, 0xc2, 0xd3, 0xcf, 0x14, 0xcc, 0x28, 0x48, 0x37, 0x14, 0xbc, 0x45, 0x9b, 0x07, 0xad, 0x6f, 0x01, 0x5e, 0x5f, 0x28, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x02, 0x00, 0x00, 0x05, 0x00, 0x3c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x42, 0x2f, 0xba, 0x59, 0xa2, 0x79, 0xd0, 0x11, 0x90, 0x20, 0x00, 0xc0, 0x4f, 0xc2, 0xd3, 0xcf, 0xba, 0x7a, 0x96, 0xbf, 0xe6, 0x0d, 0xd0, 0x11, 0xa2, 0x85, 0x00, 0xaa, 0x00, 0x30, 0x49, 0xe2, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x02, 0x00, 0x00, 0x05, 0x00, 0x3c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xf8, 0x88, 0x70, 0x03, 0xe1, 0x0a, 0xd2, 0x11, 0xb4, 0x22, 0x00, 0xa0, 0xc9, 0x68, 0xf9, 0x39, 0x14, 0xcc, 0x28, 0x48, 0x37, 0x14, 0xbc, 0x45, 0x9b, 0x07, 0xad, 0x6f, 0x01, 0x5e, 0x5f, 0x28, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x02, 0x00, 0x00, 0x05, 0x00, 0x3c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xf8, 0x88, 0x70, 0x03, 0xe1, 0x0a, 0xd2, 0x11, 0xb4, 0x22, 0x00, 0xa0, 0xc9, 0x68, 0xf9, 0x39, 0xba, 0x7a, 0x96, 0xbf, 0xe6, 0x0d, 0xd0, 0x11, 0xa2, 0x85, 0x00, 0xaa, 0x00, 0x30, 0x49, 0xe2, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x02, 0x00, 0x00, 0x05, 0x00, 0x38, 0x00, 0x30, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x7f, 0x7a, 0x96, 0xbf, 0xe6, 0x0d, 0xd0, 0x11, 0xa2, 0x85, 0x00, 0xaa, 0x00, 0x30, 0x49, 0xe2, 0x01, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x15, 0x00, 0x00, 0x00, 0xe8, 0xc0, 0xf8, 0x7a, 0xfa, 0x0f, 0x9e, 0xac, 0x5c, 0xef, 0xbe, 0x73, 0x05, 0x02, 0x00, 0x00, 0x05, 0x00, 0x2c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x1d, 0xb1, 0xa9, 0x46, 0xae, 0x60, 0x5a, 0x40, 0xb7, 0xe8, 0xff, 0x8a, 0x58, 0xd4, 0x56, 0xd2, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x30, 0x02, 0x00, 0x00, 0x05, 0x00, 0x2c, 0x00, 0x30, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x1c, 0x9a, 0xb6, 0x6d, 0x22, 0x94, 0xd1, 0x11, 0xae, 0xbd, 0x00, 0x00, 0xf8, 0x03, 0x67, 0xc1, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x31, 0x02, 0x00, 0x00, 0x05, 0x00, 0x2c, 0x00, 0x30, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x62, 0xbc, 0x05, 0x58, 0xc9, 0xbd, 0x28, 0x44, 0xa5, 0xe2, 0x85, 0x6a, 0x0f, 0x4c, 0x18, 0x5e, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x31, 0x02, 0x00, 0x00, 0x05, 0x00, 0x2c, 0x00, 0x94, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x14, 0xcc, 0x28, 0x48, 0x37, 0x14, 0xbc, 0x45, 0x9b, 0x07, 0xad, 0x6f, 0x01, 0x5e, 0x5f, 0x28, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x02, 0x00, 0x00, 0x05, 0x00, 0x2c, 0x00, 0x94, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0xba, 0x7a, 0x96, 0xbf, 0xe6, 0x0d, 0xd0, 0x11, 0xa2, 0x85, 0x00, 0xaa, 0x00, 0x30, 0x49, 0xe2, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x02, 0x00, 0x00, 0x05, 0x00, 0x28, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x53, 0x1a, 0x72, 0xab, 0x2f, 0x1e, 0xd0, 0x11, 0x98, 0x19, 0x00, 0xaa, 0x00, 0x40, 0x52, 0x9b, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x28, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x53, 0x1a, 0x72, 0xab, 0x2f, 0x1e, 0xd0, 0x11, 0x98, 0x19, 0x00, 0xaa, 0x00, 0x40, 0x52, 0x9b, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0a, 0x00, 0x00, 0x00, 0x05, 0x02, 0x28, 0x00, 0x30, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xde, 0x47, 0xe6, 0x91, 0x6f, 0xd9, 0x70, 0x4b, 0x95, 0x57, 0xd6, 0x3f, 0xf4, 0xf3, 0xcc, 0xd8, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0xbf, 0x01, 0x0e, 0x00, 0x01, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x15, 0x00, 0x00, 0x00, 0xe8, 0xc0, 0xf8, 0x7a, 0xfa, 0x0f, 0x9e, 0xac, 0x5c, 0xef, 0xbe, 0x73, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0xbf, 0x01, 0x0e, 0x00, 0x01, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x15, 0x00, 0x00, 0x00, 0xe8, 0xc0, 0xf8, 0x7a, 0xfa, 0x0f, 0x9e, 0xac, 0x5c, 0xef, 0xbe, 0x73, 0x07, 0x02, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0xbf, 0x01, 0x0f, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x94, 0x00, 0x02, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0xff, 0x01, 0x0f, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x12, 0x00, 0x00, 0x00 ];
let result = Acl::parse(&original_acl).unwrap().1;
assert_eq!(result.acl_size, 1140);
println!("ACL: {:?}",result);
}