summaryrefslogtreecommitdiff
path: root/src/msg.fbs
diff options
context:
space:
mode:
authorSimon Menke <simon.menke@gmail.com>2019-03-04 17:04:19 +0100
committerRyan Dahl <ry@tinyclouds.org>2019-03-04 11:04:19 -0500
commit77d7ad61f39641b79a60a99da2f939cbc1d8fe39 (patch)
tree3bc46c49b0007fb83c435d6cf417dd0f844d947c /src/msg.fbs
parent048a8a77753881936d7c6b32f4534ee364eb42ad (diff)
Allow inspection and revocation of permissions (#1875)
Diffstat (limited to 'src/msg.fbs')
-rw-r--r--src/msg.fbs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/msg.fbs b/src/msg.fbs
index da03e00a4..1b57e72ef 100644
--- a/src/msg.fbs
+++ b/src/msg.fbs
@@ -12,6 +12,9 @@ union Any {
Exit,
Environ,
EnvironRes,
+ Permissions,
+ PermissionRevoke,
+ PermissionsRes,
Fetch,
FetchRes,
MakeTempDir,
@@ -231,6 +234,20 @@ table KeyValue {
value: string;
}
+table Permissions {}
+
+table PermissionRevoke {
+ permission: string;
+}
+
+table PermissionsRes {
+ run: bool;
+ read: bool;
+ write: bool;
+ net: bool;
+ env: bool;
+}
+
// Note this represents The WHOLE header of an http message, not just the key
// value pairs. That means it includes method and url for Requests and status
// for responses. This is why it is singular "Header" instead of "Headers".