Changeset 5d96851b in mainline for uspace/lib/libc


Ignore:
Timestamp:
2009-07-06T19:17:49Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0315679
Parents:
7114d83
Message:

Pass task ID to NS from loader. This prevents ID spoofing by user apps.

Location:
uspace/lib/libc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/task.c

    r7114d83 r5d96851b  
    163163int task_retval(int val)
    164164{
    165         task_id_t id;
    166 
    167         id = task_get_id();
    168         return (int) async_req_3_0(PHONE_NS, NS_RETVAL, LOWER32(id),
    169             UPPER32(id), val);
     165        return (int) async_req_1_0(PHONE_NS, NS_RETVAL, val);
    170166}
    171167
  • uspace/lib/libc/include/ipc/ns.h

    r7114d83 r5d96851b  
    4141        NS_PING = IPC_FIRST_USER_METHOD,
    4242        NS_TASK_WAIT,
     43        NS_ID_INTRO,
    4344        NS_RETVAL
    4445} ns_request_t;
Note: See TracChangeset for help on using the changeset viewer.