Tue 27 Aug 00:14:56 CEST 2024

This commit is contained in:
sbosse 2024-08-27 00:16:13 +02:00
parent edf4357ebc
commit 36ecb80b86

9
test/test-security.js Normal file
View File

@ -0,0 +1,9 @@
p=Port.unique()
r=Port.unique()
cap=Capability(p,Private.encode(0,Rights.NEG_LIFE|Rights.NEG_CPU,r))
print(Port.toString(r))
print(Capability.toString(cap))
print(Private.rights_check(cap.cap_priv,r,Rights.NEG_LIFE))