Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 9c75a99d in mainline


Ignore:
Timestamp:
2018-11-08T11:06:45Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
3875f106, cdf6066
Parents:
b294126
git-author:
Jiri Svoboda <jiri@…> (2018-10-07 19:05:12)
git-committer:
Jiri Svoboda <jiri@…> (2018-11-08 11:06:45)
Message:

Fix kernel panic when perm_revoke() syscall is invoked.

Files:
1 added
3 edited

Legend:

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

    rb294126 r9c75a99d  
    131131         * doesn't have PERM_PERM.
    132132         */
    133         irq_spinlock_unlock(&TASK->lock, false);
     133        irq_spinlock_lock(&TASK->lock, false);
    134134
    135135        if ((!(TASK->perms & PERM_PERM)) || (task != TASK)) {
  • uspace/lib/c/Makefile

    rb294126 r9c75a99d  
    196196        test/stdio/scanf.c \
    197197        test/odict.c \
     198        test/perm.c \
    198199        test/qsort.c \
    199200        test/sprintf.c \
  • uspace/lib/c/test/main.c

    rb294126 r9c75a99d  
    3737PCUT_IMPORT(mem);
    3838PCUT_IMPORT(odict);
     39PCUT_IMPORT(perm);
    3940PCUT_IMPORT(qsort);
    4041PCUT_IMPORT(scanf);
Note: See TracChangeset for help on using the changeset viewer.