@@ -134,6 +134,10 @@ public sealed class NtType
134134 /// Generic Read Access rights
135135 /// </summary>
136136 public string GenericAll { get ; }
137+ /// <summary>
138+ /// Get the maximum access mask for the type's default mandatory access policy.
139+ /// </summary>
140+ public string DefaultMandatoryAccess { get ; }
137141
138142 /// <summary>
139143 /// Get implemented object type for this NT type.
@@ -418,7 +422,7 @@ public bool IsValidAccess(AccessMask access_mask)
418422 }
419423
420424 /// <summary>
421- /// Get the maximum access mask for the types default mandatory access policy.
425+ /// Get the maximum access mask for the type's default mandatory access policy.
422426 /// </summary>
423427 /// <returns>The allowed access mask for the type with the default policy.</returns>
424428 public AccessMask GetDefaultMandatoryAccess ( )
@@ -464,6 +468,7 @@ internal NtType(string name, GenericMapping generic_mapping, Type access_rights_
464468 GenericWrite = NtObjectUtils . GrantedAccessAsString ( GenericMapping . GenericWrite , GenericMapping , access_rights_type , false ) ;
465469 GenericExecute = NtObjectUtils . GrantedAccessAsString ( GenericMapping . GenericExecute , GenericMapping , access_rights_type , false ) ;
466470 GenericAll = NtObjectUtils . GrantedAccessAsString ( GenericMapping . GenericAll , GenericMapping , access_rights_type , false ) ;
471+ DefaultMandatoryAccess = NtObjectUtils . GrantedAccessAsString ( GetDefaultMandatoryAccess ( ) , generic_mapping , access_rights_type , false ) ;
467472 }
468473
469474 internal NtType ( int id , string name )
@@ -514,6 +519,7 @@ internal NtType(int id, ObjectTypeInformation info, NtTypeFactory type_factory)
514519 GenericWrite = NtObjectUtils . GrantedAccessAsString ( GenericMapping . GenericWrite , GenericMapping , _type_factory . AccessRightsType , false ) ;
515520 GenericExecute = NtObjectUtils . GrantedAccessAsString ( GenericMapping . GenericExecute , GenericMapping , _type_factory . AccessRightsType , false ) ;
516521 GenericAll = NtObjectUtils . GrantedAccessAsString ( GenericMapping . GenericAll , GenericMapping , _type_factory . AccessRightsType , false ) ;
522+ DefaultMandatoryAccess = NtObjectUtils . GrantedAccessAsString ( GetDefaultMandatoryAccess ( ) , GenericMapping , _type_factory . AccessRightsType , false ) ;
517523 }
518524
519525 internal NtType ( string name , NtType existing_type )
0 commit comments