Tue 27 Aug 00:14:56 CEST 2024
This commit is contained in:
parent
edf4357ebc
commit
36ecb80b86
9
test/test-security.js
Normal file
9
test/test-security.js
Normal 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))
|
Loading…
Reference in New Issue
Block a user