-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Add default permissions to most plugins (#1460)
* Add default permissions to most plugins. Co-authored-by: chippers <[email protected]> Co-authored-by: fabianlars <[email protected]> * updated default description * mobile plugin relevant changes --------- Co-authored-by: chippers <[email protected]> Co-authored-by: fabianlars <[email protected]>
- Loading branch information
1 parent
f1372ad
commit 0cb1baf
Showing
73 changed files
with
1,211 additions
and
37 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"$schema" = "schemas/schema.json" | ||
[default] | ||
description = """ | ||
This permission set configures if your | ||
application can enable or disable auto | ||
starting the application on boot. | ||
#### Granted Permissions | ||
It allows all to check, enable and | ||
disable the automatic start on boot. | ||
""" | ||
|
||
permissions = [ | ||
"allow-enable", | ||
"allow-disable", | ||
"allow-is-enabled", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"$schema" = "schemas/schema.json" | ||
[default] | ||
description = """ | ||
This permission set configures which | ||
barcode scanning features are by default exposed. | ||
#### Granted Permissions | ||
It allows all barcode related features. | ||
""" | ||
|
||
permissions = [ | ||
"allow-cancel", | ||
"allow-check-permissions", | ||
"allow-open-app-settings", | ||
"allow-request-permissions", | ||
"allow-scan", | ||
"allow-vibrate", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"$schema" = "schemas/schema.json" | ||
[default] | ||
description = """ | ||
This permission set configures which | ||
biometric features are by default exposed. | ||
#### Granted Permissions | ||
It allows acccess to all biometric commands. | ||
""" | ||
|
||
permissions = [ | ||
"allow-authenticate", | ||
"allow-status", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"$schema" = "schemas/schema.json" | ||
[default] | ||
description = """ | ||
No features are enabled by default, as we believe | ||
the clipboard can be inherently dangerous and it is | ||
application specific if read and/or write access is needed. | ||
Clipboard interaction needs to be explicitly enabled. | ||
""" | ||
|
||
permissions = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"$schema" = "schemas/schema.json" | ||
|
||
[default] | ||
description = """ | ||
This permission set configures the types of dialogs | ||
available from the dialog plugin. | ||
#### Granted Permissions | ||
All dialog types are enabled. | ||
""" | ||
permissions = [ | ||
"allow-ask", | ||
"allow-confirm", | ||
"allow-message", | ||
"allow-save", | ||
"allow-open", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"$schema" = "schemas/schema.json" | ||
|
||
[[permission]] | ||
identifier = "create-app-specific-dirs" | ||
description = """ | ||
This permissions allows to create the application specific directories. | ||
""" | ||
commands.allow = ["mkdir"] | ||
|
||
[[permission.scope.allow]] | ||
path = "$APPCONFIG" | ||
|
||
[[permission.scope.allow]] | ||
path = "$APPDATA" | ||
|
||
[[permission.scope.allow]] | ||
path = "$APPLOCALDATA" | ||
|
||
[[permission.scope.allow]] | ||
path = "$APPCACHE" | ||
|
||
[[permission.scope.allow]] | ||
path = "$APPLOG" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
plugins/fs/permissions/read-app-specific-dirs-recursive.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"$schema" = "schemas/schema.json" | ||
|
||
[[permission]] | ||
identifier = "read-app-specific-dirs-recursive" | ||
description = """ | ||
This permission allows recursive read functionality on the application | ||
specific base directories. | ||
""" | ||
commands.allow = [ | ||
"read_dir", | ||
"read_file", | ||
"read_text_file", | ||
"read_text_file_lines", | ||
"read_text_file_lines_next", | ||
"exists", | ||
] | ||
|
||
[[permission.scope.allow]] | ||
path = "$APPCONFIG/**" | ||
|
||
[[permission.scope.allow]] | ||
path = "$APPDATA/**" | ||
|
||
[[permission.scope.allow]] | ||
path = "$APPLOCALDATA/**" | ||
|
||
[[permission.scope.allow]] | ||
path = "$APPCACHE/**" | ||
|
||
[[permission.scope.allow]] | ||
path = "$APPLOG/**" |
Oops, something went wrong.