server: Accept mandatory label ACEs.
This commit is contained in:
parent
985e226c07
commit
aa407a2818
|
@ -265,6 +265,10 @@ static int acl_is_valid( const ACL *acl, data_size_t size )
|
|||
sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
|
||||
sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
|
||||
break;
|
||||
case SYSTEM_MANDATORY_LABEL_ACE_TYPE:
|
||||
sid = (const SID *)&((const SYSTEM_MANDATORY_LABEL_ACE *)ace)->SidStart;
|
||||
sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_MANDATORY_LABEL_ACE, SidStart);
|
||||
break;
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
@ -914,6 +914,12 @@ static void dump_inline_acl( const char *prefix, const ACL *acl, data_size_t siz
|
|||
fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
|
||||
((const SYSTEM_ALARM_ACE *)ace)->Mask );
|
||||
break;
|
||||
case SYSTEM_MANDATORY_LABEL_ACE_TYPE:
|
||||
sid = (const SID *)&((const SYSTEM_MANDATORY_LABEL_ACE *)ace)->SidStart;
|
||||
sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_MANDATORY_LABEL_ACE, SidStart);
|
||||
fprintf( stderr, "SYSTEM_MANDATORY_LABEL_ACE_TYPE,Mask=%x",
|
||||
((const SYSTEM_MANDATORY_LABEL_ACE *)ace)->Mask );
|
||||
break;
|
||||
default:
|
||||
fprintf( stderr, "unknown<%d>", ace->AceType );
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue