Resource
Packages can obtain system resources even in lower privilege identity if they apply this mechanism.
Steps to setup resource config
Find out the resources you want from Resource List
Check if the corresponding Timing of selected resource is satisfied.
Create a file at
conf/resource
with prefered configuration.
{
"data-share": {
"shares": [
{
"name": "MyShareFolderName",
"permission": {
"ro": ["MyUserName"]
}
}
]
}
}
The instance handling the resource request is called
worker
.