Skip to content

Commit 4a11bc5

Browse files
authored
Addressed review remarks
1. Increased path buffer to PATH_MAX 2. Updated the comment block
1 parent 71bec45 commit 4a11bc5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

drivers/tee/tee_core.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ int tee_session_calc_client_uuid(uuid_t *uuid, u32 connection_method,
223223
* For TEEC_LOGIN_GROUP:
224224
* gid=<gid>
225225
*
226+
* For TEEC_LOGIN_APPLICATION:
227+
* path=<command line path>
228+
*
229+
* For TEEC_LOGIN_USER_APPLICATION:
230+
* uid=<uid>,path=<command line path>
226231
*/
227232

228233
name = kzalloc(TEE_UUID_NS_NAME_SIZE, GFP_KERNEL);
@@ -257,7 +262,7 @@ int tee_session_calc_client_uuid(uuid_t *uuid, u32 connection_method,
257262

258263
case TEE_IOCTL_LOGIN_APPLICATION:
259264
{
260-
char path[512];
265+
char path[PATH_MAX];
261266
if (get_cmdline(current, path, sizeof(path)) >= sizeof(path)) {
262267
rc = -E2BIG;
263268
goto out_free_name;
@@ -273,7 +278,7 @@ int tee_session_calc_client_uuid(uuid_t *uuid, u32 connection_method,
273278

274279
case TEE_IOCTL_LOGIN_USER_APPLICATION:
275280
{
276-
char path[512];
281+
char path[PATH_MAX];
277282
if (get_cmdline(current, path, sizeof(path)) >= sizeof(path)) {
278283
rc = -E2BIG;
279284
goto out_free_name;

0 commit comments

Comments
 (0)