The Pred security model performs comparison operations.
A PSL file containing a description of the Pred security model is located in the KasperskyOS SDK at the following path:
toolchain/include/nk/basic.psl
Pred security model object
The basic.psl
file contains a declaration that creates a Pred security model object named pred
. Consequently, inclusion of the basic.psl
file into the solution security policy description will create a Pred security model object by default.
A Pred security model object does not have any parameters and cannot be covered by a security audit.
It is not necessary to create additional Pred security model objects.
Pred security model methods
A Pred security model contains expressions that perform comparison operations and return values of the Boolean
type. To call these expressions, use the following comparison operators:
ScalarLiteral
> ==
<ScalarLiteral
> – "equals".ScalarLiteral
> !=
<ScalarLiteral
> – "does not equal".Number
> <
<Number
> – "is less than".Number
> <=
<Number
> – "is less than or equal to".Number
> >
<Number
> – "is greater than".Number
> >=
<Number
> – "is greater than or equal to".The Pred security model also contains the empty
expression that determines whether data contains its own structural elements. This expression returns values of the Boolean
type. If data does not contain its own structural elements (for example, a set is empty), the expression returns true
, otherwise it returns false
. To call the expression, use the following construct:
pred.empty (<Text | Set | List | Map>) | ()
Page top