Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/security/perm.c

    ra53ed3a r7f11dc6  
    8484 *
    8585 */
    86 static errno_t perm_grant(task_id_t taskid, perm_t perms)
     86static int perm_grant(task_id_t taskid, perm_t perms)
    8787{
    8888        if (!(perm_get(TASK) & PERM_PERM))
     
    116116 *
    117117 */
    118 static errno_t perm_revoke(task_id_t taskid, perm_t perms)
     118static int perm_revoke(task_id_t taskid, perm_t perms)
    119119{
    120120        irq_spinlock_lock(&tasks_lock, true);
     
    158158 *
    159159 */
    160 sys_errno_t sys_perm_grant(sysarg64_t *uspace_taskid, perm_t perms)
     160sysarg_t sys_perm_grant(sysarg64_t *uspace_taskid, perm_t perms)
    161161{
    162162        sysarg64_t taskid;
    163         errno_t rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(sysarg64_t));
    164         if (rc != EOK)
    165                 return (sys_errno_t) rc;
     163        int rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(sysarg64_t));
     164        if (rc != 0)
     165                return (sysarg_t) rc;
    166166       
    167167        return perm_grant((task_id_t) taskid, perms);
     
    179179 *
    180180 */
    181 sys_errno_t sys_perm_revoke(sysarg64_t *uspace_taskid, perm_t perms)
     181sysarg_t sys_perm_revoke(sysarg64_t *uspace_taskid, perm_t perms)
    182182{
    183183        sysarg64_t taskid;
    184         errno_t rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(sysarg64_t));
    185         if (rc != EOK)
    186                 return (sys_errno_t) rc;
     184        int rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(sysarg64_t));
     185        if (rc != 0)
     186                return (sysarg_t) rc;
    187187       
    188188        return perm_revoke((task_id_t) taskid, perms);
     
    203203 *
    204204 */
    205 sys_errno_t sys_perm_grant(sysarg_t taskid, perm_t perms)
     205sysarg_t sys_perm_grant(sysarg_t taskid, perm_t perms)
    206206{
    207207        return perm_grant((task_id_t) taskid, perms);
     
    219219 *
    220220 */
    221 sys_errno_t sys_perm_revoke(sysarg_t taskid, perm_t perms)
     221sysarg_t sys_perm_revoke(sysarg_t taskid, perm_t perms)
    222222{
    223223        return perm_revoke((task_id_t) taskid, perms);
Note: See TracChangeset for help on using the changeset viewer.