Categories

In here we introduce what categories privilege specification supports to overwrite the setting of defaults. After applying chown according to defaults's settings, chown again with the caterogy's settings:

Each category is a key of the privilege specification json object, and the corresponding value is a json object array. An object in the array represents the configuration of an executable.


ctrl-script

Control scripts (preinst, post_inst, start_stop_status...) are spawned by the Package Center:

"ctrl-script": [{
  "action": "<action>",
  "run-as": "<run-as>"
}, ...]
Member Since Description
action 6.0-5891 String, can only be one of "preinst", "postinst", "preuninst", "postuninst", "preupgrade", "postupgrade", "start", "stop,、 "status", "prestart,、 "prestop", or "log"
run-as 6.0-5891 See defaults.

executable

Executables directly spawned by the DSM framework belongs to this category:

"executable": [{
  "relpath": "<relpath>",
  "run-as": "<run-as>"
}, ...]
Member Since Description
relpath 6.0-5891 String, the file's relative path under /var/packages/${package}/target/.
run-as 6.0-5891 See defaults.

tool

Executables indirectly called by the DSM framework spawn belongs to this category (For example, command line tool called by a CGI):

"tool": [{
  "relpath": "<relpath>",
  "user": "<user>",
  "group": "<group>",
  "permission": "<mode>"
}, ...]
Member Since Description
relpath 6.0-5891 String, the file's relative path under /var/packages/${package}/target/.
user 6.0-5891 String, file's owner user, can only be "package" or "root".
group 6.0-5891 String, file's owner group, can only be "package" or "root".
permission 6.0-5891 4 digit number to set file permission, for example: 4750