Changes in kernel/generic/include/security/cap.h [b3f8fb7:6b10dab] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/security/cap.h
rb3f8fb7 r6b10dab 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 35 35 /** 36 36 * @file 37 * @brief 37 * @brief Capabilities definitions. 38 38 * 39 39 * Capabilities represent virtual rights that entitle their … … 48 48 #define __CAP_H__ 49 49 50 #include <syscall/sysarg64.h> 51 #include <arch/types.h> 50 #include <typedefs.h> 52 51 53 52 /** … … 55 54 * privilege to/from other tasks. 56 55 */ 57 #define CAP_CAP (1<<0)56 #define CAP_CAP (1 << 0) 58 57 59 58 /** … … 61 60 * to other tasks. 62 61 */ 63 #define CAP_MEM_MANAGER (1<<1)62 #define CAP_MEM_MANAGER (1 << 1) 64 63 65 64 /** … … 67 66 * to other tasks. 68 67 */ 69 #define CAP_IO_MANAGER (1<<2) 70 71 /** 72 * CAP_PREEMPT_CONTROL allows its holder to disable/enable preemption. 73 */ 74 #define CAP_PREEMPT_CONTROL (1<<3) 68 #define CAP_IO_MANAGER (1 << 2) 75 69 76 70 /** 77 71 * CAP_IRQ_REG entitles its holder to register IRQ handlers. 78 72 */ 79 #define CAP_IRQ_REG (1<<4)73 #define CAP_IRQ_REG (1 << 3) 80 74 81 75 typedef uint32_t cap_t; 82 76 83 extern unative_t sys_cap_grant(sysarg64_t *uspace_taskid_arg, cap_t caps); 84 extern unative_t sys_cap_revoke(sysarg64_t *uspace_taskid_arg, cap_t caps); 77 #ifdef __32_BITS__ 78 79 extern sysarg_t sys_cap_grant(sysarg64_t *, cap_t); 80 extern sysarg_t sys_cap_revoke(sysarg64_t *, cap_t); 81 82 #endif /* __32_BITS__ */ 83 84 #ifdef __64_BITS__ 85 86 extern sysarg_t sys_cap_grant(sysarg_t, cap_t); 87 extern sysarg_t sys_cap_revoke(sysarg_t, cap_t); 88 89 #endif /* __64_BITS__ */ 85 90 86 91 #endif
Note:
See TracChangeset
for help on using the changeset viewer.