Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/capsicum.h
Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | |||||
/* Strange and powerful rights that should not be given lightly. */ | /* Strange and powerful rights that should not be given lightly. */ | ||||
/* Allows for ioctl(2). */ | /* Allows for ioctl(2). */ | ||||
#define CAP_IOCTL CAPRIGHT(1, 0x0000000000000080ULL) | #define CAP_IOCTL CAPRIGHT(1, 0x0000000000000080ULL) | ||||
#define CAP_TTYHOOK CAPRIGHT(1, 0x0000000000000100ULL) | #define CAP_TTYHOOK CAPRIGHT(1, 0x0000000000000100ULL) | ||||
/* Process management via process descriptors. */ | /* Process management via process descriptors. */ | ||||
/* Allows for pdgetpid(2). */ | /* Allows for pdgetpid(2). */ | ||||
#define CAP_PDGETPID CAPRIGHT(1, 0x0000000000000200ULL) | #define CAP_PDGETPID CAPRIGHT(1, 0x0000000000000200ULL) | ||||
/* Allows for pdwait4(2). */ | |||||
#define CAP_PDWAIT CAPRIGHT(1, 0x0000000000000400ULL) | |||||
/* Allows for pdkill(2). */ | /* Allows for pdkill(2). */ | ||||
#define CAP_PDKILL CAPRIGHT(1, 0x0000000000000800ULL) | #define CAP_PDKILL CAPRIGHT(1, 0x0000000000000800ULL) | ||||
/* Extended attributes. */ | /* Extended attributes. */ | ||||
/* Allows for extattr_delete_fd(2). */ | /* Allows for extattr_delete_fd(2). */ | ||||
#define CAP_EXTATTR_DELETE CAPRIGHT(1, 0x0000000000001000ULL) | #define CAP_EXTATTR_DELETE CAPRIGHT(1, 0x0000000000001000ULL) | ||||
/* Allows for extattr_get_fd(2). */ | /* Allows for extattr_get_fd(2). */ | ||||
#define CAP_EXTATTR_GET CAPRIGHT(1, 0x0000000000002000ULL) | #define CAP_EXTATTR_GET CAPRIGHT(1, 0x0000000000002000ULL) | ||||
Show All 13 Lines | |||||
#define CAP_ACL_SET CAPRIGHT(1, 0x0000000000080000ULL) | #define CAP_ACL_SET CAPRIGHT(1, 0x0000000000080000ULL) | ||||
/* Allows for kevent(2) on kqueue descriptor with changelist != NULL. */ | /* Allows for kevent(2) on kqueue descriptor with changelist != NULL. */ | ||||
#define CAP_KQUEUE_CHANGE CAPRIGHT(1, 0x0000000000100000ULL) | #define CAP_KQUEUE_CHANGE CAPRIGHT(1, 0x0000000000100000ULL) | ||||
#define CAP_KQUEUE (CAP_KQUEUE_EVENT | CAP_KQUEUE_CHANGE) | #define CAP_KQUEUE (CAP_KQUEUE_EVENT | CAP_KQUEUE_CHANGE) | ||||
/* All used bits for index 1. */ | /* All used bits for index 1. */ | ||||
#define CAP_ALL1 CAPRIGHT(1, 0x00000000001FFFFFULL) | #define CAP_ALL1 CAPRIGHT(1, 0x00000000001FFBFFULL) | ||||
/* Available bits for index 1. */ | /* Available bits for index 1. */ | ||||
#define CAP_UNUSED1_22 CAPRIGHT(1, 0x0000000000200000ULL) | #define CAP_UNUSED1_22 CAPRIGHT(1, 0x0000000000200400ULL) | ||||
/* ... */ | /* ... */ | ||||
#define CAP_UNUSED1_57 CAPRIGHT(1, 0x0100000000000000ULL) | #define CAP_UNUSED1_57 CAPRIGHT(1, 0x0100000000000000ULL) | ||||
/* 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] = \ | ||||
▲ Show 20 Lines • Show All 248 Lines • Show Last 20 Lines |