Skip to content

Commit 97f58bf

Browse files
fix[frontend](file_classification): setted action mask to a decimal integer
1 parent 609acfa commit 97f58bf

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

frontend/src/app/data-management/file-management/shared/const/file-acces-mask.constant.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ import {FileAccessMaskCodeType} from '../types/file-access-mask-code.type';
44
export const ACCESS_MASK_CODES: FileAccessMaskCodeType[] = [
55
{
66
access: 'ReadData (or ListDirectory)',
7-
hex: AccessMaskEnum.READ_DATA,
7+
hex: parseInt(AccessMaskEnum.READ_DATA,16),
88
description: 'ReadData - For a file object, the right to read ' +
99
'the corresponding file data. For a directory object, the right to read the' +
1010
' corresponding directory data.\n' +
1111
'ListDirectory - For a directory, the right to list the contents of the directory.'
1212
},
1313
{
1414
access: 'WriteData (or AddFile)',
15-
hex: AccessMaskEnum.WRITE_DATA,
15+
hex:parseInt( AccessMaskEnum.WRITE_DATA,16),
1616
description: 'WriteData - For a file object, the right to write data to the file. ' +
1717
'For a directory object, the right to create a file in the directory (FILE_ADD_FILE).\n' +
1818
'AddFile - For a directory, the right to create a file in the directory..'
1919
},
2020
{
2121
access: 'AppendData (or AddSubdirectory or CreatePipeInstance)',
22-
hex: AccessMaskEnum.APPEND_DATA,
22+
hex:parseInt( AccessMaskEnum.APPEND_DATA,16),
2323
description: 'AppendData - For a file object, the right to append data to the file.' +
2424
' (For local files, write operations will not overwrite existing data if this flag ' +
2525
'is specified without FILE_WRITE_DATA.) For a directory object, the right to create a ' +
@@ -29,17 +29,17 @@ export const ACCESS_MASK_CODES: FileAccessMaskCodeType[] = [
2929
},
3030
{
3131
access: 'ReadEA(For registry objects, this is Enumerate sub-keys.)',
32-
hex: AccessMaskEnum.READ_EA,
32+
hex:parseInt( AccessMaskEnum.READ_EA,16),
3333
description: 'The right to read extended file attributes.'
3434
},
3535
{
3636
access: 'WriteEA',
37-
hex: AccessMaskEnum.WRITE_EA,
37+
hex:parseInt( AccessMaskEnum.WRITE_EA,16),
3838
description: 'The right to write extended file attributes.'
3939
},
4040
{
4141
access: 'Execute/Traverse',
42-
hex: AccessMaskEnum.EXECUTE_TRAVERSE,
42+
hex:parseInt( AccessMaskEnum.EXECUTE_TRAVERSE,16),
4343
description: 'Execute - For a native code file, the right to execute' +
4444
' the file. This access right given to scripts may cause the ' +
4545
'script to be executable, depending on the script interpreter.\n' +
@@ -50,52 +50,52 @@ export const ACCESS_MASK_CODES: FileAccessMaskCodeType[] = [
5050
},
5151
{
5252
access: 'Delete child',
53-
hex: AccessMaskEnum.DELETE_CHILD,
53+
hex:parseInt( AccessMaskEnum.DELETE_CHILD,16),
5454
description: 'For a directory, the right to delete a directory and all the ' +
5555
'files it contains, including read-only files.'
5656
},
5757
{
5858
access: 'Read attributes',
59-
hex: AccessMaskEnum.READ_ATTRIBUTES,
59+
hex:parseInt( AccessMaskEnum.READ_ATTRIBUTES,16),
6060
description: 'The right to read file attributes.'
6161
},
6262
{
6363
access: 'Write attributes',
64-
hex: AccessMaskEnum.WRITE_ATTRIBUTES,
64+
hex:parseInt( AccessMaskEnum.WRITE_ATTRIBUTES,16),
6565
description: 'The right to write file attributes.'
6666
},
6767
{
6868
access: 'Delete',
69-
hex: AccessMaskEnum.DELETE,
69+
hex:parseInt( AccessMaskEnum.DELETE,16),
7070
description: 'The right to delete the object.'
7171
},
7272
{
7373
access: 'Read control',
74-
hex: AccessMaskEnum.READ_CONTROL,
74+
hex:parseInt( AccessMaskEnum.READ_CONTROL,16),
7575
description: 'The right to read the information in the object\'s security' +
7676
' descriptor, not including the information' +
7777
' in the system access control list (SACL).'
7878
},
7979
{
8080
access: 'Write DAC',
81-
hex: AccessMaskEnum.WRITE_AC,
81+
hex:parseInt( AccessMaskEnum.WRITE_AC,16),
8282
description: 'The right to modify the discretionary access control list' +
8383
' (DACL) in the object\'s security descriptor.'
8484
},
8585
{
8686
access: 'Write OWNER',
87-
hex: AccessMaskEnum.WRITE_OWNER,
87+
hex:parseInt( AccessMaskEnum.WRITE_OWNER,16),
8888
description: 'The right to change the owner in the object\'s security descriptor'
8989
},
9090
{
9191
access: 'Synchronize',
92-
hex: AccessMaskEnum.SYNCHRONIZE,
92+
hex:parseInt( AccessMaskEnum.SYNCHRONIZE,16),
9393
description: 'The right to use the object for synchronization. This enables a thread to ' +
9494
'wait until the object is in the signaled state. Some object type do not support this access right.'
9595
},
9696
{
9797
access: 'Access SYS_SEC',
98-
hex: AccessMaskEnum.ACCESS_SYS_SEC,
98+
hex:parseInt( AccessMaskEnum.ACCESS_SYS_SEC,16),
9999
description: 'The ACCESS_SYS_SEC access right controls the ability to get or set the SACL' +
100100
' in an object\'s security descriptor.'
101101
}

0 commit comments

Comments
 (0)