Lines Matching full:rights
21 #define CAP_SET_ALL(rights) CAP_ALL(rights) argument
23 #define CAP_SET_ALL(rights) *(rights) = CAP_MASK_VALID argument
29 #define CAP_SET_NONE(rights) CAP_NONE(rights) argument
31 #define CAP_SET_NONE(rights) *(rights) = 0 argument
37 * Define new-style rights in terms of old-style rights if
40 #include "capsicum-rights.h"
122 inline int cap_rights_get(int fd, cap_rights_t *rights) { in cap_rights_get() argument
123 return cap_getrights(fd, rights); in cap_rights_get()
130 inline int cap_rights_limit(int fd, const cap_rights_t *rights) { in cap_rights_limit() argument
131 int cap = cap_new(fd, *rights); in cap_rights_limit()
143 static inline void cap_rights_describe(const cap_rights_t *rights, char *buffer) { in cap_rights_describe() argument
146 int len = sprintf(buffer, "0x%016llx ", (unsigned long long)rights->cr_rights[ii]); in cap_rights_describe()
154 inline std::ostream& operator<<(std::ostream& os, cap_rights_t rights) {
156 …os << std::hex << std::setw(16) << std::setfill('0') << (unsigned long long)rights.cr_rights[ii] <…
164 static inline void cap_rights_describe(const cap_rights_t *rights, char *buffer) { in cap_rights_describe() argument
165 sprintf(buffer, "0x%016llx", (*rights)); in cap_rights_describe()
168 #endif /* new/old style rights manipulation */