Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/capsicum.h
| Show First 20 Lines • Show All 293 Lines • ▼ Show 20 Lines | ||||||||||
| /* Allows operations on inotify descriptors. */ | /* Allows operations on inotify descriptors. */ | |||||||||
| #define CAP_INOTIFY_ADD CAPRIGHT(1, 0x0000000000200000ULL) | #define CAP_INOTIFY_ADD CAPRIGHT(1, 0x0000000000200000ULL) | |||||||||
| #define CAP_INOTIFY_RM CAPRIGHT(1, 0x0000000000400000ULL) | #define CAP_INOTIFY_RM CAPRIGHT(1, 0x0000000000400000ULL) | |||||||||
| /* Allows pddupfd(2). */ | /* Allows pddupfd(2). */ | |||||||||
| #define CAP_PDDUPFD CAPRIGHT(1, 0x0000000000800000ULL) | #define CAP_PDDUPFD CAPRIGHT(1, 0x0000000000800000ULL) | |||||||||
| #define CAP_UNUSED1_25 CAPRIGHT(1, 0x0000000001000000ULL) | /* Allows ptrace(PT_PROCDESC) */ | |||||||||
| #define CAP_PTRACE CAPRIGHT(1, 0x0000000001000000ULL) | ||||||||||
markjUnsubmitted Not Done Inline Actions
markj: | ||||||||||
| #define CAP_UNUSED1_26 CAPRIGHT(1, 0x0000000002000000ULL) | #define CAP_UNUSED1_26 CAPRIGHT(1, 0x0000000002000000ULL) | |||||||||
| #define CAP_UNUSED1_27 CAPRIGHT(1, 0x0000000004000000ULL) | #define CAP_UNUSED1_27 CAPRIGHT(1, 0x0000000004000000ULL) | |||||||||
| #define CAP_UNUSED1_28 CAPRIGHT(1, 0x0000000008000000ULL) | #define CAP_UNUSED1_28 CAPRIGHT(1, 0x0000000008000000ULL) | |||||||||
| #define CAP_UNUSED1_29 CAPRIGHT(1, 0x0000000010000000ULL) | #define CAP_UNUSED1_29 CAPRIGHT(1, 0x0000000010000000ULL) | |||||||||
| #define CAP_UNUSED1_30 CAPRIGHT(1, 0x0000000020000000ULL) | #define CAP_UNUSED1_30 CAPRIGHT(1, 0x0000000020000000ULL) | |||||||||
| #define CAP_UNUSED1_31 CAPRIGHT(1, 0x0000000040000000ULL) | #define CAP_UNUSED1_31 CAPRIGHT(1, 0x0000000040000000ULL) | |||||||||
| #define CAP_UNUSED1_32 CAPRIGHT(1, 0x0000000080000000ULL) | #define CAP_UNUSED1_32 CAPRIGHT(1, 0x0000000080000000ULL) | |||||||||
| #define CAP_UNUSED1_33 CAPRIGHT(1, 0x0000000100000000ULL) | #define CAP_UNUSED1_33 CAPRIGHT(1, 0x0000000100000000ULL) | |||||||||
| Show All 17 Lines | ||||||||||
| #define CAP_UNUSED1_51 CAPRIGHT(1, 0x0004000000000000ULL) | #define CAP_UNUSED1_51 CAPRIGHT(1, 0x0004000000000000ULL) | |||||||||
| #define CAP_UNUSED1_52 CAPRIGHT(1, 0x0008000000000000ULL) | #define CAP_UNUSED1_52 CAPRIGHT(1, 0x0008000000000000ULL) | |||||||||
| #define CAP_UNUSED1_53 CAPRIGHT(1, 0x0010000000000000ULL) | #define CAP_UNUSED1_53 CAPRIGHT(1, 0x0010000000000000ULL) | |||||||||
| #define CAP_UNUSED1_54 CAPRIGHT(1, 0x0020000000000000ULL) | #define CAP_UNUSED1_54 CAPRIGHT(1, 0x0020000000000000ULL) | |||||||||
| #define CAP_UNUSED1_55 CAPRIGHT(1, 0x0040000000000000ULL) | #define CAP_UNUSED1_55 CAPRIGHT(1, 0x0040000000000000ULL) | |||||||||
| #define CAP_UNUSED1_56 CAPRIGHT(1, 0x0080000000000000ULL) | #define CAP_UNUSED1_56 CAPRIGHT(1, 0x0080000000000000ULL) | |||||||||
| #define CAP_UNUSED1_57 CAPRIGHT(1, 0x0100000000000000ULL) | #define CAP_UNUSED1_57 CAPRIGHT(1, 0x0100000000000000ULL) | |||||||||
| /* All used bits for index 1. */ | /* All default bits for index 1. */ | |||||||||
| #define CAP_ALL1 CAPRIGHT(1, 0x0000000000FFFFFFULL) | #define CAP_ALL1 CAPRIGHT(1, 0x0000000001FFFFFFULL) | |||||||||
| /* Backward compatibility. */ | /* Backward compatibility. */ | |||||||||
| #define CAP_POLL_EVENT CAP_EVENT | #define CAP_POLL_EVENT CAP_EVENT | |||||||||
| #define CAP_ALL(rights) do { \ | #define CAP_ALL(rights) do { \ | |||||||||
| (rights)->cr_rights[0] = \ | (rights)->cr_rights[0] = \ | |||||||||
| ((uint64_t)CAP_RIGHTS_VERSION << 62) | CAP_ALL0; \ | ((uint64_t)CAP_RIGHTS_VERSION << 62) | CAP_ALL0; \ | |||||||||
| (rights)->cr_rights[1] = CAP_ALL1; \ | (rights)->cr_rights[1] = CAP_ALL1; \ | |||||||||
| ▲ Show 20 Lines • Show All 240 Lines • Show Last 20 Lines | ||||||||||