Lines Matching full:rights
217 test_file_cap(int fd, cap_rights_t *rights) in test_file_cap() argument
223 return (cap_rights_contains(&fdrights, rights)); in test_file_cap()
285 cap_rights_t rights, norights; in ATF_TC_BODY() local
294 cap_rights_init(&rights, CAP_READ, CAP_FCNTL); in ATF_TC_BODY()
296 fa = fileargs_init(MAX_FILES, files, O_RDONLY, 0, &rights, in ATF_TC_BODY()
308 ATF_REQUIRE(test_file_cap(fd, &rights) == true); in ATF_TC_BODY()
332 cap_rights_t rights, norights; in ATF_TC_BODY() local
341 cap_rights_init(&rights, CAP_WRITE, CAP_FCNTL); in ATF_TC_BODY()
343 fa = fileargs_init(MAX_FILES, files, O_WRONLY, 0, &rights, in ATF_TC_BODY()
355 ATF_REQUIRE(test_file_cap(fd, &rights) == true); in ATF_TC_BODY()
379 cap_rights_t rights, norights; in ATF_TC_BODY() local
388 cap_rights_init(&rights, CAP_WRITE, CAP_FCNTL, CAP_READ); in ATF_TC_BODY()
391 &rights, FA_OPEN); in ATF_TC_BODY()
399 ATF_REQUIRE(test_file_cap(fd, &rights) == true); in ATF_TC_BODY()
424 cap_rights_t rights; in ATF_TC_BODY() local
436 cap_rights_init(&rights, CAP_READ); in ATF_TC_BODY()
437 fa = fileargs_cinit(capcas, MAX_FILES, files, O_RDONLY, 0, &rights, in ATF_TC_BODY()
459 cap_rights_t rights, norights; in ATF_TC_BODY() local
469 cap_rights_init(&rights, CAP_READ, CAP_FCNTL); in ATF_TC_BODY()
471 fa = fileargs_init(MAX_FILES, files, O_RDONLY, 0, &rights, in ATF_TC_BODY()
484 ATF_REQUIRE(test_file_cap(fd, &rights) == true); in ATF_TC_BODY()
509 cap_rights_t rights, norights; in ATF_TC_BODY() local
519 cap_rights_init(&rights, CAP_WRITE, CAP_FCNTL); in ATF_TC_BODY()
521 fa = fileargs_init(MAX_FILES, files, O_WRONLY, 0, &rights, in ATF_TC_BODY()
534 ATF_REQUIRE(test_file_cap(fd, &rights) == true); in ATF_TC_BODY()
559 cap_rights_t rights; in ATF_TC_BODY() local
569 cap_rights_init(&rights, CAP_READ, CAP_WRITE, CAP_FCNTL); in ATF_TC_BODY()
570 fa = fileargs_init(MAX_FILES, files, O_RDWR | O_CREAT, 0, &rights, in ATF_TC_BODY()
580 ATF_REQUIRE(test_file_cap(fd, &rights) == true); in ATF_TC_BODY()
666 cap_rights_t rights, norights; in ATF_TC_BODY() local
675 cap_rights_init(&rights, CAP_READ, CAP_FCNTL); in ATF_TC_BODY()
677 fa = fileargs_init(MAX_FILES, files, O_RDONLY, 0, &rights, in ATF_TC_BODY()
691 ATF_REQUIRE(test_file_cap(fd, &rights) == true); in ATF_TC_BODY()
714 cap_rights_t rights, norights; in ATF_TC_BODY() local
723 cap_rights_init(&rights, CAP_READ, CAP_FCNTL); in ATF_TC_BODY()
725 fa = fileargs_init(MAX_FILES, files, O_RDONLY, 0, &rights, in ATF_TC_BODY()
739 ATF_REQUIRE(test_file_cap(fd, &rights) == true); in ATF_TC_BODY()