Re: [PATCH 2/3] ntdll: Support TokenIntegrityLevel in NtQueryInformationToken
28 Jul
2012
28 Jul
'12
11:58 p.m.
On 7/29/2012 02:24, Detlef Riekenberg wrote:
+ { + /* report always "S-1-16-12288" (high mandatory level) */ + static BYTE high_level[] = {1, /* SID_VERSION */ + 1, /* One SubAuthority entry */ + 0,0,0,0,0,16, /* SECURITY_MANDATORY_LABEL_AUTHORITY */ + 0,0x30,0,0}; /* SECURITY_MANDATORY_HIGH_RID */ + This is ugly. Better way is:
static const SID highlabel = { SID_REVISION, 1, { SECURITY_MANDATORY_LABEL_AUTHORITY}, { SECURITY_MANDATORY_HIGH_RID } }; and comment is not needed after that cause level is now obvious with these defines.
4884
Age (days ago)
4884
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Sivov