Browse Source

securemsm-kernel: Export get_client_env_object

Expose basic smcinvoke support for kernel clients.

Change-Id: I754ff56c8c20579d5c824170d0e1b61d0a22535c
Nicholas Pelham 2 years ago
parent
commit
e6550eb67e
2 changed files with 4 additions and 1 deletions
  1. 2 1
      smcinvoke/smcinvoke_kernel.c
  2. 2 0
      smcinvoke/smcinvoke_object.h

+ 2 - 1
smcinvoke/smcinvoke_kernel.c

@@ -280,7 +280,7 @@ static int get_root_obj(struct Object *rootObj)
  * Get a client environment using CBOR encoded credentials
  * with UID of SYSTEM_UID (1000)
  */
-static int32_t get_client_env_object(struct Object *clientEnvObj)
+int32_t get_client_env_object(struct Object *clientEnvObj)
 {
 	int32_t  ret = OBJECT_ERROR;
 	struct Object rootObj = Object_NULL;
@@ -310,6 +310,7 @@ static int32_t get_client_env_object(struct Object *clientEnvObj)
 	Object_release(rootObj);
 	return ret;
 }
+EXPORT_SYMBOL(get_client_env_object);
 
 static int load_app(struct qseecom_compat_context *cxt, const char *app_name)
 {

+ 2 - 0
smcinvoke/smcinvoke_object.h

@@ -194,4 +194,6 @@ int process_invoke_request_from_kernel_client(
 
 char *firmware_request_from_smcinvoke(const char *appname, size_t *fw_size, struct qtee_shm *shm);
 
+int32_t get_client_env_object(struct Object *clientEnvObj);
+
 #endif /* __SMCINVOKE_OBJECT_H */