| H A D | cap_test_relative.c | 54 int fd, etc, etc_cap, etc_cap_ro, etc_cap_base, etc_cap_all; in test_relative() local 58 REQUIRE(etc = open("/etc/", O_RDONLY)); in test_relative() 59 CHECK_SYSCALL_SUCCEEDS(cap_getrights, etc, &rights); in test_relative() 62 MAKE_CAPABILITY(etc_cap, etc, CAP_READ); in test_relative() 63 MAKE_CAPABILITY(etc_cap_ro, etc, CAP_READ | CAP_LOOKUP); in test_relative() 64 MAKE_CAPABILITY(etc_cap_base, etc, baserights); in test_relative() 65 MAKE_CAPABILITY(etc_cap_all, etc, CAP_MASK_VALID); in test_relative() 71 CHECK_SYSCALL_SUCCEEDS(openat, etc, "/etc/passwd", O_RDONLY); in test_relative() 73 CHECK_SYSCALL_SUCCEEDS(openat, etc, "passwd", O_RDONLY); in test_relative() 74 CHECK_SYSCALL_SUCCEEDS(openat, etc, "../etc/passwd", O_RDONLY); in test_relative() [all …]
|