You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by GitBox <gi...@apache.org> on 2020/06/24 09:20:29 UTC

[GitHub] [incubator-teaclave] yc-huang commented on issue #329: How to register local files?

yc-huang commented on issue #329:
URL: https://github.com/apache/incubator-teaclave/issues/329#issuecomment-648703515


   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"}'
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org