Including EDL files in a KasperskyOS-based solution security policy description
To include an EDL file for the KasperskyOS kernel in a policy description, use any of the following declarations:
To include an EDL file for a program (such as a driver or application) into a policy description, use one of the following declarations:
The process class name in the use EDL
declaration and the link to the EDL file in the task class
declaration represents the EDL file path (without the extension and dot before it) relative to the directory that is included in the set of directories where the nk-psl-gen-c
compiler searches for PSL, IDL, CDL, and EDL files. (This set of directories is defined by the -I
<path to the directory
> parameters when starting the makekss
script or the nk-psl-gen-c
compiler.) A dot is used as a separator in a path description.
The process class name may differ from the link to the EDL file in the task class
declaration. The task class
declaration includes the EDL file in the policy description while ignoring the process class name in this file. The process class name specified in the EDL file is replaced by the process class name specified in the declaration. The same EDL file may be included in the policy description multiple times but with different process class names.
Example:
In the task class
declaration, you do not have to specify the link to the EDL file:
This declaration imitates inclusion of an EDL file that contains only the process class name. In other words, if you use this declaration, you don't have to create EDL files containing only the task class
or entity
declaration.
Example:
The process class names in EDL file inclusion declarations must be unique within the same policy description irrespective of which of the potential EDL file inclusion declarations are being used.
The nk-psl-gen-c
compiler finds IDL and CDL files via EDL files because EDL files contain the names of components and interfaces. CDL files also contain the names of components and interfaces for searching for IDL and CDL files.