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

Developer

resources

Example - Full directory access except for a subtree

In this example, all applications and services with the AEEPRIVID_PTEST_LOCK privilege are granted full access to the directory, but not allowed any access to the settings subdirectory.

include "myapp.bid"

Applet { 
    appletid       =AEECLSID_myapp,
    resbaseid      =20,
    applethostid   =  0,
    type           =  0,
}

ModRsc {
    name  ="IDS_STRING_20", 
    id    = 20,
    type  = 1,
    data  =EncStringRscData(0xFF, "myapp"),
}

FS_ACL_Grant{
   {
      groups = {0}, 
      perms = "rw/rw"
   },
path = "/"
}

FS_ACL_Grant{
   {
      groups = {0}, 
      perms = ""
   },
path = "/settings"
}