KasperskyOS Community Edition 1.2
HashSet security model add rule
add {sid : <Sid>, entry : <Entry>}

It adds the entry value to the table associated with the sid resource.

It returns the "allowed" result in the following cases:

  • The rule added the entry value to the table associated with the sid resource.
  • The table associated with the sid resource already contains the entry value.

It returns the "denied" result in the following cases:

  • The table associated with the sid resource is completely full.
  • The sid resource is not associated with a table from the tables pool of the HashSet security model object being used.
  • The sid value is outside of the permissible range.

Example:

/* A process of the Server class will receive the "allowed" decision from * the Kaspersky Security Module by calling the * Add security interface method if, when this method is called, the value * 5 will be added to the table associated with this * process, or is already in the table. Otherwise * a process of the Server class will receive the "denied" decision from the * security module by calling the * Add security interface method. */ security src=Server, method=Add { s.add {sid : src_sid, entry : 5} }