IMetabasePolicy.MandatoryAccessControl

Syntax

MandatoryAccessControl: Boolean;

Description

The MandatoryAccessControl property determines a flag of using mandatory method of access distribution.

Comments

The property is set to False by default – mandatory access is not used. If the value is True, the use of mandatory method of access distribution is activated.

It is possible to use mandatory access and discretionary control at the same time.  

Use the SecurityDescriptor property to set access permissions to objects.

Example

Sub Main;

Var

MB: IMetabase;

MS: IMetabaseSecurity;

MU: IMetabasePolicy;

s: String;

Begin

MB:=MetabaseClass.Active;

MS:=MB.Security;

MU:=MS.Policy;

If MU.MandatoryAccessControl Then

s:="Yes"

Else

s:="No"

End If;

End Sub Main;

After executing this example the "s" variable contains "Yes" if mandatory access is activated.

See also:

IMetabasePolicy | IMetabasePolicy.MandatoryAccess | IMetabasePolicy.DiscretionaryAccessControl