Lines Matching refs:rights
6 * All rights reserved.
55 * Possible rights on capabilities.
238 /* Strange and powerful rights that should not be given lightly. */
292 #define CAP_ALL(rights) do { \
293 (rights)->cr_rights[0] = \
295 (rights)->cr_rights[1] = CAP_ALL1; \
298 #define CAP_NONE(rights) do { \
299 (rights)->cr_rights[0] = \
301 (rights)->cr_rights[1] = CAPRIGHT(1, 0ULL); \
305 #define CAPVER(rights) CAPRVER((rights)->cr_rights[0])
306 #define CAPARSIZE(rights) (CAPVER(rights) + 2)
325 cap_rights_t *__cap_rights_init(int version, cap_rights_t *rights, ...);
329 cap_rights_t *__cap_rights_set(cap_rights_t *rights, ...);
333 cap_rights_t *__cap_rights_clear(cap_rights_t *rights, ...);
337 bool __cap_rights_is_set(const cap_rights_t *rights, ...);
339 bool cap_rights_is_empty(const cap_rights_t *rights);
341 bool cap_rights_is_valid(const cap_rights_t *rights);
350 "unsupported version of capsicum rights");
435 * Test whether a capability grants the requested rights.
439 * Convert capability rights into VM access flags.
445 * extract the rights from a capability.
485 * Limits capability rights for the given descriptor (CAP_*).
487 int cap_rights_limit(int fd, const cap_rights_t *rights);
489 * Returns capability rights for the given descriptor.
491 #define cap_rights_get(fd, rights) \
492 __cap_rights_get(CAP_RIGHTS_VERSION, (fd), (rights))
493 int __cap_rights_get(int version, int fd, cap_rights_t *rights);