Lines Matching full:rights
52 // Expect to have all primary rights. in TEST()
53 cap_rights_t rights; in TEST() local
54 EXPECT_OK(cap_rights_get(fd, &rights)); in TEST()
57 EXPECT_RIGHTS_EQ(&all, &rights); in TEST()
75 cap_rights_t rights; in TEST() local
76 cap_rights_init(&rights, CAP_READ, CAP_WRITE, CAP_SEEK, CAP_IOCTL); in TEST()
77 EXPECT_OK(cap_rights_limit(fd, &rights)); in TEST()
85 EXPECT_RIGHTS_EQ(&rights, &cur_rights); in TEST()
91 // Limiting the top-level rights leaves the subrights unaffected... in TEST()
92 cap_rights_clear(&rights, CAP_READ); in TEST()
93 EXPECT_OK(cap_rights_limit(fd, &rights)); in TEST()
100 cap_rights_clear(&rights, CAP_IOCTL); in TEST()
101 EXPECT_OK(cap_rights_limit(fd, &rights)); in TEST()