Lines Matching full:rights

23   cap_rights_t rights;  in FORK_TEST()  local
24 cap_rights_init(&rights, CAP_READ, CAP_FCNTL); in FORK_TEST()
48 EXPECT_OK(cap_rights_limit(caps[key], &rights)); in FORK_TEST()
76 // FreeBSD10 FreeBSD9.1: Linux: Rights: Summary:
132 cap_rights_t rights; in CheckFcntl() local
133 cap_rights_init(&rights, right); in CheckFcntl()
136 if (cap_rights_contains(&(fcntl_rights[ii]), &rights)) { in CheckFcntl()
170 // Check the things that need no rights against caps[0]. in TEST()
173 // dup()'ed FD should have same rights. in TEST()
174 cap_rights_t rights; in TEST() local
175 cap_rights_init(&rights, 0); in TEST()
176 EXPECT_OK(cap_rights_get(newfd, &rights)); in TEST()
177 EXPECT_RIGHTS_EQ(&(fcntl_rights[0]), &rights); in TEST()
181 // dup2()'ed FD should have same rights. in TEST()
182 EXPECT_OK(cap_rights_get(newfd, &rights)); in TEST()
183 EXPECT_RIGHTS_EQ(&(fcntl_rights[0]), &rights); in TEST()
220 cap_rights_t rights; in TEST() local
221 cap_rights_init(&rights, CAP_FCNTL, CAP_READ, CAP_WRITE, CAP_FLOCK); in TEST()
222 EXPECT_OK(cap_rights_limit(cap, &rights)); in TEST()
273 cap_rights_t rights; in TEST() local
274 EXPECT_OK(cap_rights_get(fd, &rights)); in TEST()
277 EXPECT_RIGHTS_EQ(&all, &rights); in TEST()
293 cap_rights_t rights; in TEST() local
294 cap_rights_init(&rights, CAP_READ, CAP_WRITE, CAP_SEEK, CAP_FCNTL); in TEST()
295 EXPECT_OK(cap_rights_limit(fd, &rights)); in TEST()
301 EXPECT_RIGHTS_EQ(&rights, &cur_rights); in TEST()
305 // Limiting the top-level rights leaves the subrights unaffected... in TEST()
306 cap_rights_clear(&rights, CAP_READ); in TEST()
307 EXPECT_OK(cap_rights_limit(fd, &rights)); in TEST()
312 cap_rights_clear(&rights, CAP_FCNTL); in TEST()
313 EXPECT_OK(cap_rights_limit(fd, &rights)); in TEST()
326 cap_rights_t rights; in TEST() local
327 cap_rights_init(&rights, CAP_FCNTL); in TEST()
328 EXPECT_OK(cap_rights_limit(fd, &rights)); in TEST()
367 cap_rights_t rights; in TEST() local
368 cap_rights_init(&rights, CAP_FCNTL); in TEST()
369 EXPECT_OK(cap_rights_limit(sock, &rights)); in TEST()