Changeset b5e68c8 in mainline for kernel/generic/include/security/cap.h
- Timestamp:
- 2011-05-12T16:49:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f36787d7
- Parents:
- e80329d6 (diff), 750636a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/security/cap.h
re80329d6 rb5e68c8 48 48 #define __CAP_H__ 49 49 50 #include <syscall/sysarg64.h>51 50 #include <typedefs.h> 52 51 … … 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)68 #define CAP_IO_MANAGER (1 << 2) 70 69 71 70 /** 72 71 * CAP_IRQ_REG entitles its holder to register IRQ handlers. 73 72 */ 74 #define CAP_IRQ_REG (1<<3)73 #define CAP_IRQ_REG (1 << 3) 75 74 76 75 typedef uint32_t cap_t; 77 76 78 extern unative_t sys_cap_grant(sysarg64_t *uspace_taskid_arg, cap_t caps); 79 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__ */ 80 90 81 91 #endif
Note:
See TracChangeset
for help on using the changeset viewer.