Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Privileges

There are two ways to specify privileges in a CIF:

  • Using the privs field in the Applet primitive
  • Using the PrivLevel primitive

The following figure shows the Privileges tab in the MIF Editor:

The first CIF example uses the privs element of the Applet primitive in the CIF file to define privileges for individual applets:

-- Privileges
--This determines the privileges for the Applet:
Applet {
   …
   privs =  {AEEPRIVID_PLFile, AEEPRIVID_PLNetwork},
}

Alternatively, you can use the PrivLevel primitive to define privileges for the entire module:

-- Privileges
--This determines the privileges for all the applets in the same module:
PrivLevel {
   AEEPRIVID_PLFile,
   AEEPRIVID_PLNetwork,
}