I'm trying to use file agent to pass a local file as well and failed with 
"permission denied" error, do you have any clue that I might missed? Thanks...

Following are the code snippet:

--------------------------------------------------------------
in the builtin function:
let mut f = _runtime.open_input("image_key")?;

and in the client:

image_id = register_input_file(client)
...
print("[+] assigning data to task")
client.assign_data_to_task(task_id, [DataMap("image_key", image_id)], [])

...

def register_input_file(client):
    url = "file:///home/ubuntu/incubator-teaclave/1.jpg.enc"
    cmac = "cf8a2eec4ab2fb53cd5c0b2ce3c0a828"
    schema = "teaclave-file-128"
    key = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3]
    iv = []
    key_data_id = client.register_input_file(url, schema, key, iv, cmac)

    return key_data_id
----------------------------------------------------------
and following are the errors (I have modified teaclave.py to print out the 
response)

[+] assigning data to task
b'{"result":"err","request_error":"permission denied"}'



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/329#issuecomment-648703515

Reply via email to